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