Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var drawingApplication = new DrawingApplication();

            drawingApplication.CreateDocument();
            var textApplication = new TextApplication();

            textApplication.CreateDocument();
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Application factory  = new TextApplication();
            Document    document = factory.CreateDocument();

            var factory2  = new ImageApplication();
            var document2 = factory2.CreateDocument();

            var factory3 = new DocumentFactory("Text");

            var textDocument = factory3.CreateDocument();
        }