static void Main(string[] args) { var oAmp = new Amplifier(); var oTuner = new Tuner(); var oDvdPlayer = new DvdPlayer(); var oCdPlayer = new CdPlayer(oAmp); var oProjector = new Projector(); var oTheaterLights = new TheaterLights(); var oScreen = new Screen(); var oPopcornPopper = new PopcornPopper(); var oHomeTheaterFacade = new HomeTheaterFacade(oAmp, oTuner, oDvdPlayer, oCdPlayer, oProjector, oTheaterLights, oScreen, oPopcornPopper); oHomeTheaterFacade.WatchMovie("Raiders of the Lost Ark"); Console.WriteLine(""); oHomeTheaterFacade.EndMovie(); Console.ReadLine(); ; }
public HomeTheaterFacade( Amplifier voAmp, Tuner voTuner, DvdPlayer voDvdPlayer, CdPlayer voCdPlayer, Projector voProjector, TheaterLights voTheaterLights, Screen voScreen, PopcornPopper voPopcornPopper ) { moAmp = voAmp; moTuner = voTuner; moDvdPlayer = voDvdPlayer; moCdPlayer = voCdPlayer; moProjector = voProjector; moTheaterLights = voTheaterLights; moScreen = voScreen; moPopcornPopper = voPopcornPopper; }
public void SetDvd(DvdPlayer voDvdPlayer) { moDvdPlayer = voDvdPlayer; Console.WriteLine("Amplifier setting Dvd Player"); }