示例#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);
        }
示例#2
0
 public void reset()
 {
     articleXML = new ArticleXML();
 }