public MonitorConfigData() { MonitorCycle = new MonitorCycleData(); MonitorUIConfig = new MonitorUIDisplayConfig(); AllDisplayMonitorSysDataDic = new SerializableDictionary <string, OneDisplayMonitorData>(); AllDataThresholdDic = new SerializableDictionary <string, DataThresholdInfo>(); ControlFCInfos = new List <CtrlFuncCardPowerInfo>(); ControlAliaNamesDic = new SerializableDictionary <string, string>(); ScreenInfos = new SerializableDictionary <string, ScreenInfo>(); //AllLightProbesDic }
public bool CopyTo(object obj) { if (!(obj is MonitorCycleData)) { return(false); } MonitorCycleData temp = (MonitorCycleData)obj; temp.IsCycleMonitor = this.IsCycleMonitor; temp.RetryReadTimes = this.RetryReadTimes; temp.MonitorPeriod = this.MonitorPeriod; return(true); }
public object Clone() { MonitorCycleData newObj = new MonitorCycleData(); bool res = this.CopyTo(newObj); if (!res) { return(null); } else { return(newObj); } }
public void SaveMonitorCycleData(MonitorCycleData monitorCycle) { MonitorConfig.MonitorCycle = monitorCycle; //写库 }