public void Select(ApparelLayerColorSelectionDTO dto, bool isShiftPressed) { this.ColorPresetsDTO.Deselect(); if (!isShiftPressed) { this.DeselectAll(); this.SelectedApparel.Add(dto); } else { bool removed = this.SelectedApparel.Remove(dto); if (!removed) { this.SelectedApparel.Add(dto); } } }
public bool IsSelected(ApparelLayerColorSelectionDTO dto) { return(this.SelectedApparel.Contains(dto)); }