public void DeselectNote(SelectedSNote note) { if (SelectedNotesHashset.Contains(note)) { SelectedNotesHashset.Remove(note); } UpdateSelectedNoteBoundsRectangle(); }
public void SelectNote(SelectedSNote note) { if (SelectedNotesBounds.HasValue) { SelectedNotesBounds = SelectedNotesBounds.Value.CombineBoundsWith(note.GetBoundsRectangle()); } else { SelectedNotesBounds = note.GetBoundsRectangle(); } SelectedNotesHashset.Add(note); }
public void DeselectNote(SNote note) { var selected = new SelectedSNote(note, -1); DeselectNote(selected); }
public bool IsNoteSelected(SelectedSNote note) { return(SelectedNotesHashset.Contains(note)); }