public bool CopyTo(object obj) { if (!(obj is ScanBdMonitoredParamUpdateInfo)) { return(false); } ScanBdMonitoredParamUpdateInfo temp = (ScanBdMonitoredParamUpdateInfo)obj; temp.CountType = this.CountType; temp.AlarmThreshold = this.AlarmThreshold; temp.SameCount = this.SameCount; if (this.CountDicOfScanBd == null) { temp.CountDicOfScanBd = null; } else { temp.CountDicOfScanBd = new SerializableDictionary <string, byte>(); foreach (string key in this.CountDicOfScanBd.Keys) { temp.CountDicOfScanBd.Add(key, this.CountDicOfScanBd[key]); } } return(true); }
public object Clone() { ScanBdMonitoredParamUpdateInfo newObj = new ScanBdMonitoredParamUpdateInfo(); bool res = this.CopyTo(newObj); if (!res) { return null; } else { return newObj; } }
public object Clone() { ScanBdMonitoredParamUpdateInfo newObj = new ScanBdMonitoredParamUpdateInfo(); bool res = this.CopyTo(newObj); if (!res) { return(null); } else { return(newObj); } }
public OneDisplayMonitorSysData() { MCFanInfo = new ScanBdMonitoredParamUpdateInfo(); MCFanInfo.AlarmThreshold = 1000; MCFanInfo.CountDicOfScanBd = null; MCFanInfo.CountType = ScanBdMonitoredParamCountType.SameForEachScanBd; MCFanInfo.SameCount = 4; MCPowerInfo = new ScanBdMonitoredPowerInfo(); MCPowerInfo.AlarmThreshold = 4; MCPowerInfo.CountDicOfScanBd = null; MCPowerInfo.CountType = ScanBdMonitoredParamCountType.SameForEachScanBd; MCPowerInfo.SameCount = 3; }