Пример #1
0
 public void ModifyReport(LogIncidentReportHandler c)
 {
     c.ChooseReporter(4);
     Console.WriteLine("Please enter the ID of the Incident Report you want to modify.");
     int reportID = (int.Parse(Console.ReadLine()) - 1); // the id of the report -1 for the index.. if 0 is entered ..throws an exception
     c.ChooseReport(reportID);
     c.CreateNewIncidentReport();
     Console.WriteLine("Select ID of the Weather when the incident happened.");
     Console.WriteLine("\t1) Fine");
     Console.WriteLine("\t2) Rain");
     Console.WriteLine("\t3) Cloudy");
     Console.WriteLine("\t4) Windy");
     Console.WriteLine();
     int weatherID = (int.Parse(Console.ReadLine()) - 1);
     c.ModifyWeather(weatherID);
     c.ModifyReport();
 }