コード例 #1
0
        static void WriteArticles(ArticleWriter writer)
        {
            Director director = new Director(writer);

            director.WriteFullArticle();
            writer.GetArticle().Print();

            director.WriteEmptyArticle();
            writer.GetArticle().Print();

            director.WriteUntitledArticle();
            writer.GetArticle().Print();
        }
コード例 #2
0
 public Director(ArticleWriter writer)
 {
     this.writer = writer;
 }