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