static void Main(string[] args) { IWindow window = new BaseWindow(); IWindow windowWith3D = new ThreeDLightDecorator(window); IWindow windowWith3DAndColorFrame = new ColorFrameDecorator(windowWith3D); IWindow windowWith3DAndColorFrameAndPartReflection = new PartReflectionDecorator(windowWith3DAndColorFrame); IWindow windowWith3DAndColorFrameAndPartReflectionAndShadow = new ShadowDecorator(windowWith3DAndColorFrameAndPartReflection); IWindow windowWith3DAndColorFrameAndPartReflectionAndShadowAndFlickerBackground = new FlickerBackDecorator(windowWith3DAndColorFrameAndPartReflectionAndShadow); Console.WriteLine(windowWith3DAndColorFrameAndPartReflectionAndShadowAndFlickerBackground.GetDetails()); }
static void Main(string[] args) { IWindow window = new BaseWindow(); IWindow windowWith3D = new ThreeDimensionLightDecoration(window); IWindow windowWith3DAndColorfulFrame = new ColorfulFrameDecoration(windowWith3D); IWindow windowWith3DAndColorfulFrameAndSemiReflection = new SemiReflectionDecoration(windowWith3DAndColorfulFrame); IWindow windowWith3DAndColorfulFrameAndSemiReflectionAndShadowing = new ShadowingDecoration(windowWith3DAndColorfulFrameAndSemiReflection); IWindow windowWith3DAndColorfulFrameAndSemiReflectionAndShadowingAndFlickeringBackground = new FlickeringBackgroundDecoration(windowWith3DAndColorfulFrameAndSemiReflectionAndShadowing); Console.WriteLine(windowWith3DAndColorfulFrameAndSemiReflectionAndShadowingAndFlickeringBackground.GetDetails()); }