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