Example #1
0
 public CeilingFanMediumCommand(CeilingFan ceilingFan)
 {
     prevSpeed       = ceilingFan.GetSpeed();
     this.ceilingFan = ceilingFan;
 }
Example #2
0
 public void Execute()
 {
     prevSpeed = ceilingFan.GetSpeed();
     ceilingFan.Medium();
 }
Example #3
0
 public void Execute()
 {
     prevSpeed = ceilingFan.GetSpeed();
     ceilingFan.High();
 }