Пример #1
0
 public HomeTheaderFacade(Amplifier amplifier, Tuner tuner, DvdPlayer dvdPlayer, Projector projector)
 {
     this.amplifier = amplifier;
     this.tuner     = tuner;
     this.dvdPlayer = dvdPlayer;
     this.projector = projector;
 }
Пример #2
0
 public HomeTheaterFacade(Amplifier amp, DvdPlayer dvd, Projector projector, TheaterLights lights, Screen screen, PopcornPopper popper)
 {
     Amp       = amp;
     Dvd       = dvd;
     Projector = projector;
     Screen    = screen;
     Lights    = lights;
     Popper    = popper;
 }
Пример #3
0
 public HomeTheaterFacade(Amplifier amp, DvdPlayer dvd,
                          Projector projector, TheaterLights lights,
                          PopcornPopper popper)
 {
     this.amp       = amp;
     this.dvd       = dvd;
     this.projector = projector;
     this.lights    = lights;
     this.popper    = popper;
 }
Пример #4
0
 public HomeCinemaFacade(Amplifier amplifier, DvdPlayer dvdPlayer, Projector projector,
                         Light light, Screen screen, PopcornMachine popcornMachine)
 {
     this.Amplifier      = amplifier;
     this.DvdPlayer      = dvdPlayer;
     this.Projector      = projector;
     this.Light          = light;
     this.Screen         = screen;
     this.PopcornMachine = popcornMachine;
 }
Пример #5
0
 public HomeTheaterFacade(Amplifier amp, Tuner tuner, DvdPlayer dvd, CdPlayer cd, Projector projector,
                          TheaterLights lights, Screen screen, PopcornPopper popper)
 {
     _amp       = amp;
     _tuner     = tuner;
     _dvd       = dvd;
     _cd        = cd;
     _projector = projector;
     _lights    = lights;
     _screen    = screen;
     _popper    = popper;
 }
 public HomeTheaterFacade(Amplifier amplifier, CdPlayer cdPlayer, DvdPlayer dvdPlayer,
                          PopcornPopper popcornPopper, Projector projector, Screen screen,
                          TheaterLights theaterLights, Tuner tuner)
 {
     this.amplifier     = amplifier;
     this.cdPlayer      = cdPlayer;
     this.dvdPlayer     = dvdPlayer;
     this.popcornPopper = popcornPopper;
     this.projector     = projector;
     this.screen        = screen;
     this.theaterLights = theaterLights;
     this.tuner         = tuner;
 }
Пример #7
0
        private static void Main()
        {
            var dimmer      = new Dimmer();
            var dvdPlayer   = new DvdPlayer();
            var dvd         = new Dvd("Gone with the Wind 2 : Electric Bugaloo");
            var homeTheater = new HomeTheatreFacade(dimmer, dvd, dvdPlayer);

            homeTheater.WatchMovie();
            Console.WriteLine();
            homeTheater.Pause();
            Console.WriteLine();
            homeTheater.Resume();
            Console.WriteLine();
            homeTheater.Pause();
        }
        static void Main(string[] args)
        {
            var amp       = new Amplifier();
            var tuner     = new Tuner();
            var dvd       = new DvdPlayer();
            var cd        = new CdPlayer();
            var projector = new Projector();
            var screen    = new Screen();
            var lights    = new TheaterLights();
            var popper    = new PopcornPopper();

            var homeTheater = new HomeTheaterFacade(amp, tuner, dvd, cd, projector, lights, screen, popper);

            homeTheater.WatchMovie("Raider 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();

            HomeTheaterFacad homeTheater = new HomeTheaterFacad(amp, tuner, dvd, cd, projector, lights, screen, popper);

            homeTheater.watchMovie("Raiders of the Lost Ark");
            homeTheater.endMovie();
        }
Пример #10
0
 public HomeTheaterFacade(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;
 }
 public HomeTheaterFacade(
     Amplifier amplifier,
     Tuner tuner,
     DvdPlayer dvdPlayer,
     CdPlayer cdPlayer,
     Projector projector,
     TheaterLights theaterLights,
     Screen screen,
     PopcornPopper popcornPopper)
 {
     _amplifier     = amplifier;
     _tuner         = tuner;
     _dvdPlayer     = dvdPlayer;
     _cdPlayer      = cdPlayer;
     _projector     = projector;
     _theaterLights = theaterLights;
     _screen        = screen;
     _popcornPopper = popcornPopper;
 }
Пример #12
0
        static void Main(string[] args)
        {
            Amplifier amp = new Amplifier("Top-O-Line Amplifier");
            Tuner tuner = new Tuner("Top-O-Line AM/FM Tuner", amp);
            DvdPlayer dvd = new DvdPlayer("Top-O-Line DVD Player", amp);
            CdPlayer cd = new CdPlayer("Top-O-Line CD Player", amp);
            Projector projector = new Projector("Top-O-Line Projector", dvd);
            TheaterLights lights = new TheaterLights("Theater Ceiling Lights");
            Screen screen = new Screen("Theater Screen");
            PopcornPopper popper = new PopcornPopper("Popcorn Popper");

            HomeTheaterFacade homeTheater =
                    new HomeTheaterFacade(amp, tuner, dvd, cd, projector, lights, screen, popper);

            homeTheater.watchMovie("Raiders of the Lost Ark");
            homeTheater.endMovie();

            Console.ReadLine();
        }
Пример #13
0
        static void Main(string[] args)
        {
            Amplifier     amp       = new Amplifier("Top-O-Line Amplifier");
            Tuner         tuner     = new Tuner("Top-O-Line AM/FM Tuner", amp);
            DvdPlayer     dvd       = new DvdPlayer("Top-O-Line DVD Player", amp);
            CdPlayer      cd        = new CdPlayer("Top-O-Line CD Player", amp);
            Projector     projector = new Projector("Top-O-Line Projector", dvd);
            TheaterLights lights    = new TheaterLights("Theater Ceiling Lights");
            Screen        screen    = new Screen("Theater Screen");
            PopcornPopper popper    = new PopcornPopper("Popcorn Popper");

            HomeTheaterFacade homeTheater =
                new HomeTheaterFacade(amp, tuner, dvd, cd, projector, lights, screen, popper);

            homeTheater.watchMovie("Raiders of the Lost Ark");
            homeTheater.endMovie();

            Console.ReadLine();
        }
Пример #14
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Enter the name of a Movie you would like to watch: ");
            var movie = Console.ReadLine();

            var amp       = new Amplifier("Denon Amplifier");
            var dvd       = new DvdPlayer("Blu Ray Player", amp);
            var projector = new Projector("Epson Projector", dvd);
            var lights    = new TheaterLights("Rad Lights");
            var screen    = new Screen("Silver Ticket 100 Movie Screen");
            var popper    = new PopcornPopper("Pop Pop!");

            var homeTheater = new HomeTheaterFacade(amp, dvd, projector, lights, screen, popper);

            Console.WriteLine(homeTheater.WatchMovie(movie));
            Console.WriteLine("Please press Enter when movie has ended.");
            Console.ReadKey();
            Console.WriteLine(homeTheater.EndMovie());

            Console.ReadKey();
        }
Пример #15
0
 public void setDvd(DvdPlayer dvd)
 {
     Console.WriteLine(description + " setting DVD player to " + dvd);
     this.dvd = dvd;
 }
Пример #16
0
 public void setDvd(DvdPlayer dvd)
 {
     Console.WriteLine(description + " setting DVD player to " + dvd);
     this.dvd = dvd;
 }
Пример #17
0
 public Projector(string description, DvdPlayer dvdPlayer)
 {
     this.description = description;
     this.dvdPlayer = dvdPlayer;
 }
Пример #18
0
 internal void SetDvd(DvdPlayer dvd)
 {
     Console.WriteLine("Setting dvd");
 }
Пример #19
0
 public Projector(string description, DvdPlayer dvdPlayer)
 {
     this.description = description;
     this.dvdPlayer   = dvdPlayer;
 }
 public void setDvd(DvdPlayer dvd)
 {
 }