Example #1
0
 public HomeThreaterFacade(Screen screen, DVD dvd, SoundEngineer sound, Light light)
 {
     this.screen = screen;
     this.dvd    = dvd;
     this.sound  = sound;
     this.light  = light;
 }
Example #2
0
        static void Main(string[] args)
        {
            //Screen screen = new Screen();
            //DVD dvd = new DVD();
            //SoundEngineer sound = new SoundEngineer();
            //Light light = new Light();

            //screen.Down();
            //dvd.PlayDVD();
            //sound.TurnOn();
            //light.TurnOff();

            Screen             screen             = new Screen();
            DVD                dvd                = new DVD();
            SoundEngineer      sound              = new SoundEngineer();
            Light              light              = new Light();
            HomeThreaterFacade homeThreaterFacade = new HomeThreaterFacade(screen, dvd, sound, light);

            homeThreaterFacade.WatchMovie();

            Console.ReadKey();
        }