Пример #1
0
 public static void engineSizeReport(List <Record> myRecords)
 {
     // Clear the console and load the headings
     Console.Clear();
     Interface.applicationHeader();
     // Run report with engine size to compare against as parameter
     AppReports.engineSize(myRecords, 1100);
     Console.WriteLine("Engine Size Report");
     Console.WriteLine("To return to the menu, press the 'M' key. To exit the application, enter 'Exit'");
     getInput(false, myRecords);
 }
Пример #2
0
 public static void ageReport(List <Record> myRecords)
 {
     // Clear the console and load the headings
     Console.Clear();
     Interface.applicationHeader();
     // Run the report with age parameters
     AppReports.customerAge(myRecords, 20, 30);
     Console.WriteLine("Age Report");
     Console.WriteLine("To return to the menu, press the 'M' key. To exit the application, enter 'Exit'");
     getInput(false, myRecords);
 }
Пример #3
0
 public static void regDateReport(List <Record> myRecords)
 {
     // Clear the console and load the headings
     Console.Clear();
     Interface.applicationHeader();
     // Run Report with date to compare against as paramater
     AppReports.regDate(myRecords, new DateTime(2010, 01, 01));
     Console.WriteLine("Registration Date Report");
     Console.WriteLine("To return to the menu, press the 'M' key. To exit the application, enter 'Exit'");
     getInput(false, myRecords);
 }
Пример #4
0
 /* ----------------------------------------- User Interface For Reports ----------------------------------------- */
 public static void allCustomersReport(List <Record> myRecords)
 {
     // Clear the console and load the headings
     Console.Clear();
     Interface.applicationHeader();
     // Run the report
     AppReports.allRecords(myRecords);
     Console.WriteLine("All Known Customers and Vehicles Report");
     Console.WriteLine("To return to the menu, press the 'M' key. To exit the application, enter 'Exit'");
     getInput(false, myRecords);
 }