Пример #1
0
        public SystemRealTimeStatus(SystemIntegration system)
        {
            In = new PumpRealTimeStatus()
            {
                DeviceId  = system.PumpIn.DeviceId,
                IsEnabled = system.PumpIn.IsEnabled,
                Icon      = system.PumpIn.Icon,
                Name      = system.PumpIn.Name,
                Device    = system.PumpIn
            };

            Out = new PumpRealTimeStatus()
            {
                DeviceId  = system.PumpOut.DeviceId,
                IsEnabled = system.PumpOut.IsEnabled,
                Icon      = system.PumpOut.Icon,
                Name      = system.PumpOut.Name,
                Device    = system.PumpOut
            };

            Rocker = new Rocker()
            {
                DeviceId  = system.Rocker.DeviceId,
                IsEnabled = system.Rocker.IsEnabled,
                Icon      = system.Rocker.Icon,
                Name      = system.Rocker.Name,
            };
            Temperature = new TemperatureGauge()
            {
                DeviceId  = system.TemperatureGauge.DeviceId,
                IsEnabled = system.TemperatureGauge.IsEnabled,
                Icon      = system.TemperatureGauge.Icon,
                Name      = system.TemperatureGauge.Name,
            };
            Gas = new Gas()
            {
                DeviceId  = system.Gas.DeviceId,
                IsEnabled = system.Gas.IsEnabled,
                Icon      = system.Gas.Icon,
                Name      = system.Gas.Name,
            };
            Ph = new PhDevice()
            {
                DeviceId  = system.Ph.DeviceId,
                IsEnabled = system.Ph.IsEnabled,
                Icon      = system.Ph.Icon,
                Name      = system.Ph.Name,
            };
            Do = new DoDevice()
            {
                DeviceId  = system.Do.DeviceId,
                IsEnabled = system.Do.IsEnabled,
                Icon      = system.Do.Icon,
                Name      = system.Do.Name,
            };
        }
Пример #2
0
 public SystemCache(SystemIntegration system)
 {
     System = system;
     SystemRealTimeStatus = new SystemRealTimeStatus(system);
 }