public void AerationMode() { if (State == true) { Mode = ConditionerModes.Aeration; Temperature = 15; temp = Temperature; } }
public void HeatingMode() { if (State == true) { Mode = ConditionerModes.Heating; Temperature = 25; temp = Temperature; } }
public void CoolingMode() { if (State == true) { Mode = ConditionerModes.Cooling; Temperature = 5; temp = Temperature; } }
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); }