public void EndMovie()
 {
     Console.WriteLine("Shutting movie theater down.");
     _popcornPopper.Off();
     _theaterLights.Off();
     _screen.Up();
     _projector.Off();
     _dvdPlayer.Stop();
     _dvdPlayer.Eject();
     _dvdPlayer.Off();
 }
示例#2
0
 public void EndWatchingFilm()
 {
     Console.WriteLine("\nEnd film, turning off film...");
     PopcornMachine.Off();
     Light.On();
     Screen.Up();
     Projector.Off();
     Amplifier.Off();
     DvdPlayer.Stop();
     DvdPlayer.Off();
 }
示例#3
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();
 }
示例#4
0
        public object EndMovie()
        {
            var endMovie = new StringBuilder();

            endMovie.Append("Shutting movie theater down...\n");
            endMovie.Append(Popper.Off());
            endMovie.Append(Lights.On());
            endMovie.Append(Screen.Up());
            endMovie.Append(Projector.Off());
            endMovie.Append(Amp.Off());
            endMovie.Append(Dvd.Stop());
            endMovie.Append(Dvd.Eject());
            endMovie.Append(Dvd.Off());

            return(endMovie.ToString());
        }