示例#1
0
 public void DeselectNote(SelectedSNote note)
 {
     if (SelectedNotesHashset.Contains(note))
     {
         SelectedNotesHashset.Remove(note);
     }
     UpdateSelectedNoteBoundsRectangle();
 }
示例#2
0
 public void SelectNote(SelectedSNote note)
 {
     if (SelectedNotesBounds.HasValue)
     {
         SelectedNotesBounds = SelectedNotesBounds.Value.CombineBoundsWith(note.GetBoundsRectangle());
     }
     else
     {
         SelectedNotesBounds = note.GetBoundsRectangle();
     }
     SelectedNotesHashset.Add(note);
 }
示例#3
0
        public void DeselectNote(SNote note)
        {
            var selected = new SelectedSNote(note, -1);

            DeselectNote(selected);
        }
示例#4
0
 public bool IsNoteSelected(SelectedSNote note)
 {
     return(SelectedNotesHashset.Contains(note));
 }