public void Undo() { switch (_speed) { case Fan.HIGH: _fan.High(); break; case Fan.MEDIUM: _fan.Medium(); break; case Fan.LOW: _fan.Low(); break; case Fan.OFF: _fan.Off(); break; } }
public void Excute() { _speed = _fan.Speed; _fan.Medium(); }