public void EndMovie()
 {
     Console.WriteLine("Turning the devices off");
     popcornPopper.TurnOff();
     theaterLights.TurnOff();
     screen.TurnOff();
     projector.TurnOff();
     amplifier.TurnOff();
     dvdPlayer.TurnOff();
 }
예제 #2
0
        public void EndMovie()
        {
            Console.WriteLine("\nTurning off all devices...\n");

            lights.TurnOff();

            Console.WriteLine();

            speakers.TurnOff();

            Console.WriteLine();

            projector.TurnOff();

            Console.WriteLine($"\nSystem turned off");
        }