Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var m_de = new ScrollBarDecorator(new TextView());

            m_de.show();

            Console.ReadKey();
        }
Exemplo n.º 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();
        }