コード例 #1
0
 public void WatchMovie(string movie)
 {
     Console.WriteLine("Get ready to watch a movie...");
     _popcornPopper.On();
     _popcornPopper.Pop();
     _theaterLights.Dim(10);
     _screen.Down();
     _projector.On();
     _projector.WideScreenMode();
     _amplifier.On();
     _amplifier.SetDvd(_dvdPlayer);
     _amplifier.SetSurroundSound();
     _amplifier.SetVolume(5);
     _dvdPlayer.On();
     _dvdPlayer.Play(movie);
 }
コード例 #2
0
 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();
     amp.SetVolume(5);
     dvd.On();
     dvd.Play(movie);
 }