public ClimatControl(string name) : base(name)
        {
            Heat  = new Heating("Отопление");
            Cond  = new Conditioner("Кондиционер");
            Humid = new Humidifier("Увлажнитель");

            SensorHumid = new SensorHumidity("Датчик влажности");
            SensorHumid.ChangeHumidity += WatchHumidity;

            SensorTemperat = new SensorTemperature("Датчик температуры");
            SensorTemperat.ChangeTemperature += WatchTemperature;

            Auto = true;
            SetInitialTemperature();
            Humidity = 45;
        }
Esempio n. 2
0
        public ClimatControl(string name)
            : base(name)
        {
            Heat = new Heating("Отопление");
            Cond = new Conditioner("Кондиционер");
            Humid = new Humidifier("Увлажнитель");

            SensorHumid = new SensorHumidity("Датчик влажности");
            SensorHumid.ChangeHumidity += WatchHumidity;

            SensorTemperat = new SensorTemperature("Датчик температуры");
            SensorTemperat.ChangeTemperature += WatchTemperature;

            Auto = true;
            SetInitialTemperature();
            Humidity = 45;
        }
        private void Init()
        {
            Heat = new Heating("Отопление");
            Cond = new Conditioner("Кондиционер");
            Humid = new Humidifier("Увлажнитель");

            SensorHumid = new SensorHumidity("Датчик влажности");
            SensorHumid.ChangeHumidity += WatchHumidity;

            SensorTemperat = new SensorTemperature("Датчик температуры");
            SensorTemperat.ChangeTemperature += WatchTemperature;

            Auto = true;
            SetInitialTemperature();
            Humidity = 45;
        }