Ejemplo n.º 1
0
 public void Close(DoorControl door)
 {
     Console.WriteLine("Closing Door");
     Thread.Sleep(300);
     Console.WriteLine("Door closed");
     door.DoorClosed();
 }
Ejemplo n.º 2
0
 public void Open(DoorControl door)
 {
     Console.WriteLine("Opening Door");
     Thread.Sleep(300);
     Console.WriteLine("Door opened");
     door.DoorOpened();
 }