Example #1
0
 public ExamController()
 {
     display = new Display();
     while (exam is null)
     {
         try
         {
             display.Input();
             exam = new Exam
                    (
                 display.StartHour,
                 display.StartMinutes,
                 display.ArrivalHour,
                 display.ArrivalMinutes
                    );
         }
         catch (Exception e)
         {
             display.Response = e.Message;
             display.ShowResponse();
         }
     }
     display.Response = exam.Calculate();
     display.ShowResponse();
 }