static void Main(string[] args) { ConcreteComponent TextView = new ConcreteComponent(); ConcreteDecoratorA ScrollDecorator = new ConcreteDecoratorA(); ConcreteDecoratorB BorderDecorator = new ConcreteDecoratorB(); ScrollDecorator.SetComponent(TextView); BorderDecorator.SetComponent(ScrollDecorator); BorderDecorator.Operation(); Console.ReadLine(); }