Exemple #1
0
 public override void HandleMode(Flashlight flashlight)
 {
     flashlight.SetFlashLightState(new Solid());
     flashlight.FlashingOn();
 }
Exemple #2
0
 public virtual void HandleMode(Flashlight flashlight)
 {
     // up to the inherited
 }
Exemple #3
0
 public virtual void HandleMode(Flashlight flashlight)
 {
 }
Exemple #4
0
 public virtual void HandlePower(Flashlight FlashLight)
 {
     FlashLight.SetFlashLightState(new Off());
     FlashLight.LightOff();
 }
Exemple #5
0
 public void HandlePower(Flashlight FlashLight)
 {
     FlashLight.SetFlashLightState(new Solid());
     FlashLight.LightOn();
 }