示例#1
0
 public HomeTheaterInfo(AmplifierInfo amp,
                        TunerInfo tuner,
                        DVDPlayerInfo dvd,
                        CDPlayerInfo cd,
                        ProjectorInfo projector,
                        ScreenInfo screen,
                        TheaterLightInfo lights,
                        PopcornPopperInfo popper)
 {
     _amplifier = amp;
     _tuner     = tuner;
     _dvdPlayer = dvd;
     _cdPlayer  = cd;
     _projector = projector;
     _screen    = screen;
     _light     = lights;
     _popper    = popper;
 }
 public void SetCDPlayer(CDPlayerInfo cdPlayer)
 {
     _cdPlayer = cdPlayer;
     Console.WriteLine("Amplifier: " + Description + " setting CD Player to " + cdPlayer.Description);
 }