static void Main() { Document document = new Document("Контракт"); document.Body = "Тело контракта..."; document.Footer = "Директор: Иванов И.И."; document.Show(); // Delay. Console.ReadKey(); }
static void Main() { Title title = new Title(); title.Content = "Контракт"; Body body = new Body(); body.Content = "Тело контракта..."; Footer footer = new Footer(); footer.Content = "Директор: Иванов И.И."; Document document = new Document(title, body, footer); document.Show(); // Delay. Console.ReadKey(); }