コード例 #1
0
ファイル: Program.cs プロジェクト: fandrfa/DesignPatterns
        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
ファイル: Program.cs プロジェクト: fandrfa/DesignPatterns
 public HomeTheatreFacade(Projector projector, BluRayPlayer bluRayPlayer)
 {
     this.projector    = projector;
     this.bluRayPlayer = bluRayPlayer;
 }