示例#1
0
 public void WatchMovie(string movie)
 {
     Console.WriteLine("Get ready to watch movie...");
     Popper.On();
     Popper.Pop();
     Lights.Dim(10);
     Screen.Down();
     Projector.On();
     Projector.WideScreenMode();
     Amp.On();
     Amp.SetDVD(movie);
     Amp.SetSurroundSound();
     Amp.SetVolume(5);
     Dvd.On();
     Dvd.Play();
 }
        public string WatchMovie(string movie)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Get ready to watch a movie ...");
            sb.AppendLine(Popper.On());
            sb.AppendLine(Popper.Pop());
            sb.AppendLine(Lights.Dim(10));
            sb.AppendLine(Screen.Down());
            sb.AppendLine(Projector.On());
            sb.AppendLine(Projector.WideScreenMode());
            sb.AppendLine(Amp.On());
            sb.AppendLine(Amp.SetDvd());
            sb.AppendLine(Amp.SetSurroundSound());
            sb.AppendLine(Amp.SetVolume(5));
            sb.AppendLine(Dvd.On());
            sb.AppendLine(Dvd.Play(movie));

            return(sb.ToString());
        }
示例#3
0
 public void WatchMovie()
 {
     _tv.On();
     _dvd.On();
     _dvd.Play();
 }