예제 #1
0
 public bool RemoveMonitor(DtoMonitor inMonitor)
 {
     if (MonitorsList != null && MonitorsList.Contains(inMonitor))
     {
         MonitorsList.Remove(inMonitor);
         inMonitor.EizoActionCalled -= InMonitor_EizoActionCalled;
         return(true);
     }
     return(false);
 }
예제 #2
0
 //Work With monitors and presets Lists functions
 #region Add & Remove Monitor functions
 public bool AddMonitor(DtoMonitor inMonitor)
 {
     if (MonitorsList == null)
     {
         MonitorsList = new ObservableCollection <DtoMonitor>();
     }
     if (MonitorsList != null && !MonitorsList.Contains(inMonitor))
     {
         inMonitor.ParentSmartWall = this;
         inMonitor.RefreshPresetsListByParentSmartWall(this?.PresetsList);
         MonitorsList.Add(inMonitor);
         inMonitor.EizoActionCalled += InMonitor_EizoActionCalled;
         return(true);
     }
     return(false);
 }