예제 #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());
        }