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(); }
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(); }