Ejemplo n.º 1
0
 public void WatchMovie(string movie)
 {
     Console.WriteLine("Get Ready to watch a movie...");
     Popper.On();
     Popper.Pop();
     Lights.Dim();
     Screen.Down();
     Projector.On();
     Projector.WideScreenModel();
     Amp.On();
     Amp.SetSurroundSound();
     Amp.SetVolume();
     DVD.On();
     DVD.Play();
 }
Ejemplo n.º 2
0
        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());
        }