//OnLoad Functions
 #region Set Parent Monitor function
 public void SetParentMonitor(DtoMonitor inMonitor)
 {
     if (inMonitor != null)
     {
         ParentMonitor = inMonitor;
     }
 }
Example #2
0
 public bool RemoveMonitor(DtoMonitor inMonitor)
 {
     if (MonitorsList != null && MonitorsList.Contains(inMonitor))
     {
         MonitorsList.Remove(inMonitor);
         inMonitor.EizoActionCalled -= InMonitor_EizoActionCalled;
         return(true);
     }
     return(false);
 }
Example #3
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);
 }
Example #4
0
 public void NotifyEizoActionCalled(object inObjectCaller, DtoMonitor inSelectedObjectInstance, EMVWActions inActionType)
 {
     EizoActionCalled?.Invoke(this, new MVW_UserActionEventArgument <DtoMonitor, EMVWActions>(inObjectCaller, inSelectedObjectInstance, inActionType));
 }