public void Execute()
 {
     Console.WriteLine("Turning light on...");
     receiver.Action(this);
 }
Exemple #2
0
 /// <summary>
 /// Can be extended with a UnExecute method
 /// </summary>
 public void Execute()
 {
     _receiver.Action();
 }