Esempio n. 1
0
 public void ClearArray()
 {
     try
     {
         if (ValidateData.ArrayIsNullOrZero(TheConvertingStation))
         {
             TheConvertingStation.Clear();
         }
         if (ValidateData.ArrayIsNullOrZero(TheGeneratrix))
         {
             TheGeneratrix.Clear();
         }
         if (ValidateData.ArrayIsNullOrZero(TheCircuit))
         {
             TheCircuit.Clear();
         }
         if (ValidateData.ArrayIsNullOrZero(TheDetection))
         {
             TheDetection.Clear();
         }
         if (ValidateData.ArrayIsNullOrZero(TheDeviceDataSetting))
         {
             TheDeviceDataSetting.Clear();
         }
         if (ValidateData.ArrayIsNullOrZero(TheTimeSetting))
         {
             TheTimeSetting.Clear();
         }
     }
     catch (Exception msg)
     {
         Log.LogWrite(msg);
     }
 }
Esempio n. 2
0
        public void AddDeviceDataSetting()
        {
            DeviceDataSetting addDeviceDataSetting = new DeviceDataSetting()
            {
                DeviceDataToID = "0",
                DeviceDataID   = "default",
                DeviceDataName = "请选择"
            };

            TheDeviceDataSetting.Add(addDeviceDataSetting);
        }