Example #1
0
 public bool RemovePreset(DtoPreset inPreset)
 {
     if (PresetsList != null && PresetsList.Contains(inPreset))
     {
         PresetsList.Remove(inPreset);
         inPreset.EizoActionCalled -= InPreset_EizoActionCalled;
         return(true);
     }
     return(false);
 }
Example #2
0
 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);
 }