Ejemplo n.º 1
0
 /**
  * Method reloads schedule or shows feedback windown based on result passed as parameter
  *
  * @param result of saving the appointment
  */
 private void reloadScheduleOrShowFeedbackWindowBasedOnResult(bool result)
 {
     if (result)
     {
         parent.reloadSchedule();
         this.Close();
     }
     else
     {
         FeedbackWindow window = new FeedbackWindow();
         window.setMessageForBookingProblem();
         window.Show();
     }
 }