コード例 #1
0
        static void Main(string[] args)
        {
            IWindow baseWindow = new BaseWindow();
            IWindow threeD     = new ThreeDLighting(baseWindow);
            IWindow shadow     = new Shadowing(threeD);
            //Console.WriteLine(shadow.GetDetails());


            IWindow colrfulShadowingThreeDPartialMirroFlashingBase = new ColorfulFrame(new Shadowing(new ThreeDLighting(new PartialMirroring(new BackgroundFlashing(new BaseWindow())))));

            Console.WriteLine(colrfulShadowingThreeDPartialMirroFlashingBase.GetDetails());
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: ryoyop/dp140719
        static void Main(string[] args)
        {
            IWindow window = new BaseWindow();

            Console.WriteLine(new Shadow(window).GetDetails());

            //IWindow windowWithTomato = new TomatoTopping(window);
            //IWindow windowWithTomatoAndPineapple = new PineaappleTopping(windowWithTomato);

            //Console.WriteLine(windowWithTomatoAndPineapple.GetDetails());
            //Console.WriteLine(windowWithTomatoAndPineapple.GetPrice());

            //IWindow myfavoritewindow = new HalfPriceTopping(new TomatoTopping(new CheeseTopping(new Basewindow())));

            //Console.WriteLine(myfavoritewindow.GetPrice());
        }