LongoMatch.Core.Store.ProjectLongoMatch.RemoveEvents C# (CSharp) Method

RemoveEvents() public method

Delete a play from the project
public RemoveEvents ( List plays ) : void
plays List
return void
        public void RemoveEvents(List<TimelineEventLongoMatch> plays)
        {
            bool updateScore = false;

            foreach (var play in plays) {
                Timeline.Remove (play);
                if (play.EventType is ScoreEventType) {
                    updateScore = true;
                }
            }
            if (updateScore) {
                UpdateScore ();
            }
        }