static void Main(string[] args) { var m_de = new ScrollBarDecorator(new TextView()); m_de.show(); Console.ReadKey(); }
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(); }