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