public void SetNormalMode()
 {
     if (DeviceState == true)
         KitchenVentilationdMode = Mode.normal;
     else
         throw new Exception("Для выбора режима включите вытяжку");
 }
Beispiel #2
0
 public Freezer(FreezerModes fMode, int tempForFastFreezeMode, int tempForFreezingMode, int tempForStorageMode, Temperature temper, Mode mod)
 {
     Temper = temper;
     Mod = mod;
     Mod.CurrentMode = (UniversalMode)fMode;
     TempForFastFreezeMode = tempForFastFreezeMode;
     TempForFreezingMode = tempForFreezingMode;
     TempForStorageMode = tempForStorageMode;
 }
Beispiel #3
0
 public Heater(bool power, HeaterModes hm, int tempForModeStreet, int tempForModeInRoom, Temperature temper, Mode mod)
 {
     Power = power;
     Temperature = temper;
     Mode = mod;
     Mode.CurrentMode = (UniversalMode)hm;
     TempForModeInRoom = tempForModeInRoom;
     TempForModeStreet = tempForModeStreet;
 }
Beispiel #4
0
 public MediaPlayer(bool power, PlayerModes pm, bool discPresence, Sound sound, TrackControl trackControl, Mode mode)
 {
     Power = power;
     DiscPresence = discPresence;
     Sound = sound;
     TrackControl = trackControl;
     Mode = mode;
     Mode.CurrentMode = (UniversalMode)pm;
 }
Beispiel #5
0
 public AirConditioning(bool power, AirConditioningModes acm, int maxHeatingModeTemperatureValue, int minCoolingModeTemperatureValue, int temperatureForVentilation, Temperature temper, Mode mod)
 {
     Power = power;
     Temperature = temper;
     Mode = mod;
     Mode.CurrentMode = (UniversalMode)acm;
     MaxHeatingModeTemperatureValue = maxHeatingModeTemperatureValue;
     MinCoolingModeTemperatureValue = minCoolingModeTemperatureValue;
     TempForModeVentilation = temperatureForVentilation;
 }
Beispiel #6
0
 public Fridge(bool power, FridgeModes fm, int tempForManualMode, int tempForNormalMode, int tempForWarmMode, int tempForLowTemperatureMode, Temperature temper, Mode mod)
 {
     Power = power;
     Mode = mod;
     Mode.CurrentMode = (UniversalMode)fm;
     TempForManualMode = tempForManualMode;
     TempForNormalMode = tempForNormalMode;
     TempForWarmMode = tempForWarmMode;
     TempForLowTemperatureMode = tempForLowTemperatureMode;
     Temperature = temper;
 }
 public KitchenVentilation(string deviceName, bool deviceState, Mode kitchenVentilationMode)
     : base(deviceName, deviceState)
 {
     this.KitchenVentilationdMode = kitchenVentilationMode;
 }