Exemplo n.º 1
0
 public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down:");
     Lights.On();
     Screen.Up();
     Projector.Off();
     Amp.Off();
     Dvd.Stop();
     Dvd.Eject();
     Dvd.Off();
 }
Exemplo n.º 2
0
 public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down...");
     _popper.Off();
     _lights.On();
     _screen.Up();
     _projector.Off();
     _amplifier.Off();
     _dvd.Stop();
     _dvd.Eject();
     _dvd.Off();
 }
Exemplo n.º 3
0
 public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down");
     _popcornPopper.Off();
     _popcornPopper.On();
     _screen.Up();
     _projector.Off();
     _amplifier.Off();
     _dvdPlayer.Stop();
     _dvdPlayer.Eject();
     _dvdPlayer.Off();
 }
Exemplo n.º 4
0
 public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down...");
     popper.Off();
     lights.On();
     screen.Up();
     projector.Off();
     amp.Off();
     dvd.Stop();
     dvd.Eject();
     dvd.Off();
 }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            // Initialize components
            var popper    = new PopcornPopper();
            var lights    = new TheaterLights();
            var screen    = new Screen();
            var projector = new Projector();
            var amp       = new Amplifier();
            var dvd       = new DvdPlayer();

            // Watch "Raiders of the Lost Ark"
            var movieTitle = "Raiders of the Lost Ark";

            Console.WriteLine($"Get ready to watch a movie...");
            popper.On();
            lights.Dim(10);
            screen.Down();
            projector.On();
            projector.WideScreenMode();
            amp.On();
            amp.setDvd(dvd);
            amp.SetSurroundSound();
            amp.SetVolume(5);
            dvd.On();
            dvd.Play(movieTitle);

            // End Movie
            Console.WriteLine("Shutting movie theater down");
            popper.Off();
            lights.On();
            screen.Up();
            projector.Off();
            amp.Off();
            dvd.Stop();
            dvd.Eject();
            dvd.Off();
        }