public bool CopyTo(object obj)
        {
            if (!(obj is OneDisplayMonitorSysData))
            {
                return(false);
            }
            OneDisplayMonitorSysData temp = (OneDisplayMonitorSysData)obj;

            temp.TempDisplayType       = this.TempDisplayType;
            temp.IsUpdateSBStatus      = this.IsUpdateSBStatus;
            temp.IsUpdateMCStatus      = this.IsUpdateMCStatus;
            temp.IsUpdateTemperature   = this.IsUpdateTemperature;
            temp.IsUpdateHumidity      = this.IsUpdateHumidity;
            temp.IsDisplaySBValtage    = this.IsDisplaySBValtage;
            temp.IsUpdateSmoke         = this.IsUpdateSmoke;
            temp.IsUpdateFan           = this.IsUpdateFan;
            temp.IsUpdateRowLine       = this.IsUpdateRowLine;
            temp.IsUpdateMCVoltage     = this.IsUpdateMCVoltage;
            temp.IsUpdateGeneralStatus = this.IsUpdateGeneralStatus;
            temp.TemperatureThreshold  = this.TemperatureThreshold;
            temp.HumidityThreshold     = this.HumidityThreshold;
            temp.MCFanInfo             = (ScanBdMonitoredParamUpdateInfo)this.MCFanInfo.Clone();
            temp.MCPowerInfo           = (ScanBdMonitoredPowerInfo)this.MCPowerInfo.Clone();
            return(true);
        }
 public object Clone()
 {
     OneDisplayMonitorSysData newObj = new OneDisplayMonitorSysData();
     bool res = this.CopyTo(newObj);
     if (!res)
     {
         return null;
     }
     else
     {
         return newObj;
     }
 }
        public object Clone()
        {
            OneDisplayMonitorSysData newObj = new OneDisplayMonitorSysData();
            bool res = this.CopyTo(newObj);

            if (!res)
            {
                return(null);
            }
            else
            {
                return(newObj);
            }
        }
Exemplo n.º 4
0
 public MonitorSysData()
 {
     SameMonitorSysData           = new OneDisplayMonitorSysData();
     AllDisplayMonitorSysDataList = new List <OneDisplayMonitorSysData>();
 }
Exemplo n.º 5
0
 public MonitorSysData()
 {
     SameMonitorSysData = new OneDisplayMonitorSysData();
     AllDisplayMonitorSysDataList = new List<OneDisplayMonitorSysData>();
 }