public void UnselectModel(SelectableModel model) { if (!model.Selected) { return; } model.Selected = false; model.Refresh(); SelectionChanged?.Invoke(model); }
public void UnselectModel(SelectableModel model) { if (!_selectedModels.Contains(model)) { return; } model.Selected = false; _selectedModels.Remove(model); model.Refresh(); SelectionChanged?.Invoke(model, false); }
public void SelectModel(SelectableModel model, bool unselectOthers) { if (model.Selected) { return; } if (unselectOthers) { UnselectAll(); } model.Selected = true; model.Refresh(); SelectionChanged?.Invoke(model); }
public void SelectModel(SelectableModel model, bool unselectOthers) { if (_selectedModels.Contains(model)) { return; } if (unselectOthers) { UnselectAll(); } model.Selected = true; _selectedModels.Add(model); model.Refresh(); SelectionChanged?.Invoke(model, true); }