public void WatchMovie() { Console.WriteLine("Get ready to watch a move:"); Popper.On(); Popper.Pop(); Popper.Off(); Lights.Dim(); Screen.Down(); Projector.On(); Amp.On(); Amp.SetDvd("Hook"); Dvd.On(); Dvd.Play(); }
public void WatchMovie(string movie) { Console.WriteLine("Get ready to watch a movie"); _popper.On(); _popper.Pop(); _lights.Dim(10); _screen.Down(); _projector.On(); _projector.WideScreenMode(); _amp.On(); _amp.SetSurroundSound(); _amp.SetVolume(10); _dvd.On(); _dvd.PlayMovie(movie); }
public void WatchMovie(string movie) { Console.WriteLine("Get ready to watch a movie"); popper.On(); popper.Pop(); lights.Dim(10); screen.Down(); projector.On(); projector.WideScreenMode(); amp.On(); amp.SetDvd(dvd); amp.setSurroundSound(); dvd.On(); dvd.play(movie); }
public void WatchMovie(string movie) { Console.WriteLine("Get ready to watch movie"); _popcornPopper.On(); _popcornPopper.Pop(); _theaterLights.Dim(); _screen.Down(); _projector.On(); _projector.WideScreenMode(); _amplifier.On(); _amplifier.SetDvd(); _amplifier.SetSurroundSound(); _amplifier.SetVolume(10); _dvdPlayer.On(); _dvdPlayer.Play(movie); }
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(); }