Esempio n. 1
0
        static void Main(string[] args)
        {
            IDocument document1, document2;

            document1         = new DocumenHtml();
            document1.Contenu = "Hello";
            document1.Dessine();
            Console.WriteLine();
            document2         = new DocumentPdf();
            document2.Contenu = "Bonjour";
            document2.Dessine();
        }
Esempio n. 2
0
        public void LoadAdapter()
        {
            Document document1, document2, document3;

            document1         = new DocumentHtml();
            document1.contenu = "Hello";
            document1.dessine();
            Console.WriteLine();
            document2         = new DocumentPdf();
            document2.contenu = "Bonjour";
            document2.dessine();
            Console.WriteLine();
            document3         = new DocumentOdt();
            document3.contenu = "Bonjour en version ODT";
            document3.dessine();
        }
Esempio n. 3
0
        public void LoadAdapter()
        {
            IDocument documentPdf, documentHtml, documentDoc;

            documentPdf         = new DocumentPdf();
            documentPdf.Contenu = "Mon document PDF";
            documentPdf.Dessine();

            documentHtml         = new DocumentHtml();
            documentHtml.Contenu = "Mon document HTML";
            documentHtml.Dessine();

            documentDoc         = new DocumentDoc();
            documentDoc.Contenu = "Mon document DOC";
            documentDoc.Dessine();
        }