Beispiel #1
0
        static void Main(string[] args)
        {
            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("Hello")
                                ),
                            '*'
                            )
                        )
                    ),
                '/'
                );

            b4.Show();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            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("Hello!!")
                                ), '*'
                            )
                        )
                    ), '/'
                );

            b4.Show();

            Display b5 = new FullBorder(
                new UpdownBorder(
                    new SideBorder(
                        new UpdownBorder(
                            new SideBorder(
                                new StringDisplay("Hello."),
                                '*'
                                ),
                            '='
                            ),
                        '|'
                        ),
                    '/'
                    )
                );

            b5.Show();

            MultiStringDisplay md = new MultiStringDisplay();

            md.Add("おはようございます。");
            md.Add("こんにちは。");
            md.Add("おやすみなさい、また明日。");
            md.Show();

            Display d6 = new SideBorder(md, '#');

            d6.Show();
            Display d7 = new FullBorder(md);

            d7.Show();
        }
        static void Main(string[] args)
        {
            Display d1 = new StringDisplay("Hello World.");
            Display d2 = new SideBorder(d1, '#');
            Display d3 = new FullBorder(d2);

            d1.show();
            d2.show();
            d3.show();
            Display d4 = new UpDownBorder(d3, '+');

            d4.show();
        }