static void Main(string[] args) { // Client Code Report report; ReportDirector reportDirector = new ReportDirector(); // Construct and display Reports PDFReport pdfReport = new PDFReport(); report = reportDirector.MakeReport(pdfReport); report.DisplayReport(); Console.WriteLine("-------------------"); ExcelReport excelReport = new ExcelReport(); report = reportDirector.MakeReport(excelReport); report.DisplayReport(); Console.ReadKey(); }
public static void Run() { Report report; ReportDirector reportDirector = new ReportDirector(); // Construct and display Reports PDFReport pdfReport = new PDFReport(); report = reportDirector.MakeReport(pdfReport); report.DisplayReport(); Console.WriteLine("-------------------"); ExcelReport excelReport = new ExcelReport(); report = reportDirector.MakeReport(excelReport); report.DisplayReport(); Console.ReadKey(); }