Beispiel #1
0
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");

            Display b1 = new StringDisplay("Hello,world.");
            Display b2 = new SideBorder(b1, '#');
            Display b3 = new FullBorder(b2);

            b1.Show();
            b2.Show();
            b3.Show();

            Display b4 = new SideBorder(
                new FullBorder(
                    new FullBorder(
                        new SideBorder(
                            new StringDisplay("你好,世界。")
                            , '*')
                        )
                    )
                , '/');

            b4.Show();

            ReadKey();
        }
Beispiel #2
0
        void Start()
        {
            Display b1 = new StringDisplay("Hello, world.");
            Display b2 = new SideBorder(b1, '#');
            Display b3 = new FullBorder(b2);

            b1.show();
            b2.show();
            b3.show();
            Display b4 =
                new SideBorder(
                    new FullBorder(
                        new FullBorder(
                            new SideBorder(
                                new FullBorder(
                                    new StringDisplay("こんにちは。")
                                    ),
                                '*'
                                )
                            )
                        ),
                    '/'
                    );

            b4.show();
        }