Пример #1
0
 public void AerationMode()
 {
     if (State == true)
     {
         Mode        = ConditionerModes.Aeration;
         Temperature = 15;
         temp        = Temperature;
     }
 }
Пример #2
0
 public void HeatingMode()
 {
     if (State == true)
     {
         Mode        = ConditionerModes.Heating;
         Temperature = 25;
         temp        = Temperature;
     }
 }
Пример #3
0
 public void CoolingMode()
 {
     if (State == true)
     {
         Mode        = ConditionerModes.Cooling;
         Temperature = 5;
         temp        = Temperature;
     }
 }
Пример #4
0
        public override string ToString()
        {
            string Mode;

            if (this.Mode == ConditionerModes.Cooling)
            {
                Mode = "Cooling";
            }
            else if (this.Mode == ConditionerModes.Aeration)
            {
                Mode = "Aeration";
            }
            else if (this.Mode == ConditionerModes.Heating)
            {
                Mode = "Heating";
            }
            else
            {
                Mode = "UnSetted";
            }
            return(base.ToString() + ", " + Mode + " Mode" + ", temperature: " + Temperature);
        }