示例#1
0
 public HomeTheaterFacade(Amplifier amp,
                          Tuner tuner,
                          DvdPlayer dvd,
                          CdPlayer cd,
                          Projector projector,
                          Screen screen,
                          TheaterLights lights,
                          PopcornPopper popper)
 {
     _amp       = amp;
     _tuner     = tuner;
     _dvd       = dvd;
     _cd        = cd;
     _projector = projector;
     _screen    = screen;
     _lights    = lights;
     _popper    = popper;
 }
示例#2
0
 public void SetDVD(DvdPlayer dvd)
 {
     Console.WriteLine("Top-O-Line Amplifier setting DVD player to {0}.", dvd);
 }
 public void SetInput(DvdPlayer dvd)
 {
 }