static void Main(string[] args) { // Client Code Report report; ReportDirector reportDirector = new ReportDirector(); // Construct and display Reports Console.WriteLine("-----------------------------------"); Console.WriteLine("-----Details of Total Donated Report-----"); Console.WriteLine(""); TotalDonated totaldonated = new TotalDonated(); report = reportDirector.MakeReport(totaldonated); report.DisplayReport(); Console.WriteLine(""); Console.WriteLine("-------------------"); Console.WriteLine("-----------------------------------"); Console.WriteLine("-----Details of Expiry Report-----"); Console.WriteLine(""); Expiry expiry = new Expiry(); report = reportDirector.MakeReport(expiry); report.DisplayReport(); * / Console.ReadKey(); }
static void Main(string[] args) { Report report; ReportDirector reportDirector = new ReportDirector(); PdfReport pdfReport = new PdfReport(); report = reportDirector.MakeReport(pdfReport); report.DisplayReport(); ExcelReport excelReport = new ExcelReport(); report = reportDirector.MakeReport(excelReport); report.DisplayReport(); }
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(); }