public HomeTheaterFacade(Amplifier amp, Tuner tuner, CdPlayer cdPlayer, DvdPlayer dvdPlayer, TheaterLights lights, Screen screen, PopcornPopper popper) { this.amplifier = amp; this.tuner = tuner; this.cdPlayer = cdPlayer; this.dvdPlayer = dvdPlayer; this.theaterLights = lights; this.screen = screen; this.popcornPopper = popper; }
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; _lights = lights; _screen = screen; _popper = popper; }
public HomeTheaterFacade(Amplifier amplifier, Tuner tuner, DvdPlayer dvdPlayer, CdPlayer cdPlayer, TheteaterLight theaterLights, PopcornPopper popcornPopper, Screen screen, Projector projector) { _amplifier = amplifier; _tuner = tuner; _dvdPlayer = dvdPlayer; _cdPlayer = cdPlayer; _theaterLights = theaterLights; _popcornPopper = popcornPopper; _screen = screen; _projector = projector; }
public HomeTheatreFacade(Amplifier amp, Tuner tuner, DvdPlayer dvd, CdPlayer cd, Projector projector, TheaterLights lights, Screen screen, PopcornPopper popper) { this.amp = amp; this.tuner = tuner; this.dvd = dvd; this.cd = cd; this.projector = projector; this.lights = lights; this.screen = screen; this.popper = popper; }
private static void Main() { var amplifier = new Amplifier(); var tuner = new Tuner(); var dvd = new DvdPlayer(); var cd = new CdPlayer(); var projector = new Projector(); var lights = new TheaterLights(); var screen = new Screen(); var popper = new PopcornPopper(); var homeTheater = new HomeTheaterFacade(amplifier, tuner, dvd, cd, projector, lights, screen, popper); homeTheater.WatchMovie("Raiders of the Lost Ark"); homeTheater.EndMovie(); }
static void Main(string[] args) { Amplifier amp = new Amplifier(); Tuner tuner = new Tuner(); DvdPlayer dvd = new DvdPlayer(); CdPlayer cd = new CdPlayer(); Projector projector = new Projector(); TheaterLights lights = new TheaterLights(); Screen screen = new Screen(); PopcornPopper popper = new PopcornPopper(); HomeTheatreFacade homeTheater = new HomeTheatreFacade(amp, tuner, dvd, cd, projector, lights, screen, popper); homeTheater.WatchMovie("Avatar"); homeTheater.EndMovie(); }
public HomeTheaterFacade(PopcornPopper popper, TheaterLights lights, Screen screen, DvdPlayer dvd, CdPlayer cd, Tuner tuner, Projector projector, Amplifier amp) { Popper = popper; Lights = lights; Screen = screen; Dvd = dvd; Cd = cd; Tuner = tuner; Projector = projector; Amp = amp; }
static void Main(string[] args) { PopcornPopper popper = new PopcornPopper(); TheaterLights lights = new TheaterLights(); Screen screen = new Screen(); DvdPlayer dvd = new DvdPlayer(); CdPlayer cd = new CdPlayer(); Tuner tuner = new Tuner(); Projector projector = new Projector(dvd); Amplifier amp = new Amplifier(tuner, dvd, cd); HomeTheaterFacade facade = new HomeTheaterFacade(popper, lights, screen, dvd, cd, tuner, projector, amp); facade.WatchMovie(); Console.WriteLine(); facade.EndMovie(); }
public Amplifier(Tuner tuner, CdPlayer cdPlayer, DvdPlayer dvdPlayer) { this.Tuner = tuner; this.CdPlayer = cdPlayer; this.DvdPlayer = dvdPlayer; }
public void SetCd(CdPlayer cd) { Console.WriteLine($"{_description} setting CD player to {cd}"); _cd = cd; }
public Amplifier(Tuner tuner, DvdPlayer dvdPlayer, CdPlayer cdPlayer) { Tuner = tuner; DvdPlayer = dvdPlayer; CdPlayer = cdPlayer; }