Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Widget        textBox       = new TextBox();
            WidgetFactory widgetFactory = new WidgetFactory();

            textBox = widgetFactory.AddBorder(textBox, 4);
            textBox = widgetFactory.AddBorder(textBox, 8);
            textBox = widgetFactory.AddBorder(textBox, 8);
            textBox.Draw();
        }