Пример #1
0
        static void Main(string[] args)
        {
            var m_de = new ScrollBarDecorator(new TextView());

            m_de.show();

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            // Note how decorators can wrap not only simple components but the
            // other decorators as well.
            var scrollBarDecorator = new ScrollBarDecorator(new BorderDecorator(new TextView(), 4));

            scrollBarDecorator.Draw();
            Console.ReadKey();
        }