Пример #1
0
        public void Switch(int id)
        {
            Conditioner Conditioner = this.GetConditionerById(id);

            if (Conditioner.IsOn)
            {
                Conditioner.Off();
            }
            else
            {
                Conditioner.On();
            }
            this.Unit.SaveChanges();
        }
Пример #2
0
 public void Undo()
 {
     c.Off();
 }