Example #1
0
        private void OnNotesCollectionChanged(NotesCollection collection, NotesCollectionChangedEventArgs args)
        {
            var addedNotes = args.AddedNotes;

            if (addedNotes != null)
            {
                _timedEventsManager.Events.Add(GetNotesTimedEvents(addedNotes));
            }

            var removedNotes = args.RemovedNotes;

            if (removedNotes != null)
            {
                _timedEventsManager.Events.Remove(GetNotesTimedEvents(removedNotes));
            }
        }
Example #2
0
        private void OnChordNotesCollectionChanged(NotesCollection collection, NotesCollectionChangedEventArgs args)
        {
            var addedNotes = args.AddedNotes;

            if (addedNotes != null)
            {
                AddNotes(addedNotes);
            }

            var removedNotes = args.RemovedNotes;

            if (removedNotes != null)
            {
                RemoveNotes(removedNotes);
            }
        }
Example #3
0
 private void OnNotesCollectionChanged(NotesCollection collection, NotesCollectionChangedEventArgs args)
 {
     NotesCollectionChanged?.Invoke(collection, args);
 }