コード例 #1
0
        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);
        }
コード例 #2
0
 public object Clone()
 {
     ScanBdMonitoredParamUpdateInfo newObj = new ScanBdMonitoredParamUpdateInfo();
     bool res = this.CopyTo(newObj);
     if (!res)
     {
         return null;
     }
     else
     {
         return newObj;
     }
 }
コード例 #3
0
        public object Clone()
        {
            ScanBdMonitoredParamUpdateInfo newObj = new ScanBdMonitoredParamUpdateInfo();
            bool res = this.CopyTo(newObj);

            if (!res)
            {
                return(null);
            }
            else
            {
                return(newObj);
            }
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
        }