Exemplo n.º 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));
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 private void OnNotesCollectionChanged(NotesCollection collection, NotesCollectionChangedEventArgs args)
 {
     NotesCollectionChanged?.Invoke(collection, args);
 }