///------------------------------------------------------------------------------------------------- /// \fn public AppointmentDetails() /// /// \brief Adds all 6 appointment detail lines to their proper place /// /// \author Bailey /// \date 2019-04-16 ///------------------------------------------------------------------------------------------------- public AppointmentDetails() { InitializeComponent(); for (int i = 0; i < SchedulingSupport.MAX_APPOINTMENTS_WEEKDAY; i++) { AppointmentDetailLine appointment = new AppointmentDetailLine(); appointment.ClearDetails(); grdAppointments.Children.Add(appointment); Grid.SetColumn(appointment, 0); Grid.SetRow(appointment, i); lines.Add(appointment); } }
///------------------------------------------------------------------------------------------------- /// \fn public void AwaitDateSelection(AppointmentDetailLine line, int mode) /// /// \brief Used so that CalendarDays know that the calendar is in a special mode /// o booking a recall appointment /// o changing the appointment date /// /// \author Bailey /// \date 2019-04-10 /// /// \param AppointmentDetailLine line : the line that is requesting this mode /// \param int mode : the mode to change it to ///------------------------------------------------------------------------------------------------- public void AwaitDateSelection(AppointmentDetailLine line, int mode) { awaitingSelectedDate = line; currentMode = mode; }