Exemple #1
0
            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;
                }
            }
Exemple #2
0
 public void Excute()
 {
     _speed = _fan.Speed;
     _fan.Medium();
 }