public static void Demonstrate() { List <Manuscript> documents = new List <Manuscript>(); var standartFormater = new standartFormatter(); var backwordFormater = new backwardFormatter(); var faq = new properFAQ(standartFormater) { Questions = new List <string> { "aa", "bbb" }, Title = "test faq" }; documents.Add(faq); var book = new properbook(standartFormater) { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" }; documents.Add(book); var backwbook = new properbook(backwordFormater) { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" }; backwbook.print(); var paper = new properTermPaper(standartFormater) { Text = "a paper", Class = "s hand", References = "asdasd", Student = "iuhuu" }; documents.Add(paper); foreach (var document in documents) { document.print(); } Console.ReadKey(); }
public static void Demonstrate() { List<Manuscript> documents = new List<Manuscript>(); var standartFormater = new standartFormatter(); var backwordFormater = new backwardFormatter(); var faq = new properFAQ(standartFormater){ Questions = new List<string> { "aa", "bbb" }, Title = "test faq" }; documents.Add(faq); var book = new properbook(standartFormater) { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" }; documents.Add(book); var backwbook = new properbook(backwordFormater) { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" }; backwbook.print(); var paper = new properTermPaper(standartFormater) { Text = "a paper", Class = "s hand", References = "asdasd", Student = "iuhuu" }; documents.Add(paper); foreach (var document in documents) { document.print(); } Console.ReadKey(); }