public bool RemovePreset(DtoPreset inPreset) { if (PresetsList != null && PresetsList.Contains(inPreset)) { PresetsList.Remove(inPreset); inPreset.EizoActionCalled -= InPreset_EizoActionCalled; return(true); } return(false); }
public bool AddPreset(DtoPreset inPreset) { if (PresetsList == null) { PresetsList = new ObservableCollection <DtoPreset>(); } if (PresetsList != null && !PresetsList.Contains(inPreset)) { inPreset.ParentSmartWall = this; PresetsList.Add(inPreset); inPreset.EizoActionCalled += InPreset_EizoActionCalled; return(true); } return(false); }