Пример #1
0
        static void Main(string[] args)
        {
            Projector    projector    = new Projector();
            BluRayPlayer bluRayPlayer = new BluRayPlayer();

            HomeTheatreFacade homeTheatre = new HomeTheatreFacade(projector, bluRayPlayer);

            homeTheatre.PlayMovie();
            homeTheatre.StopMovie();

            Console.ReadLine();
        }
Пример #2
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();
        }