Esempio n. 1
0
        static void Main(string[] args)
        {
            Director.layoutArticle(new BuilderTXT(), "Neurons", "text");
            ArticleTXT articleTXT = (ArticleTXT)Director.GetArticle();

            Console.WriteLine(articleTXT.Title);

            Director.convertArticle(new BuilderXML(), articleTXT);
            ArticleXML articleXML = (ArticleXML)Director.GetArticle();

            Console.WriteLine(articleXML.Title);
        }
Esempio n. 2
0
 public void reset()
 {
     articleXML = new ArticleXML();
 }