/// <summary> /// It is a constructor which initializes the parent controller. /// </summary> /// <param name="a_parent">It is a parent controller.</param> public ScheduleAppUC(Object a_parent) { m_appControl = (AppointmentControl)a_parent; m_email = m_appControl.GetEmail(); InitializeComponent(); }
/// <summary> /// This function displays the appointments by initializing it first if necessary. /// </summary> private void ViewAppointments() { if (m_ucAppointment == null) { m_ucAppointment = new AppointmentControl(this, false); m_ucAppointment.Dock = DockStyle.Fill; contentPanel.Controls.Add(m_ucAppointment); } contentPanel.Controls["AppointmentControl"].BringToFront(); }
/// <summary> /// This function views the appointment controller. /// </summary> private void ViewAppointments() { if (m_ucAppointments == null) { // Since StudentProfile is static class, directly access it from children classes instead. m_ucAppointments = new AppointmentControl(this, true); m_ucAppointments.Dock = DockStyle.Fill; contentPanel.Controls.Add(m_ucAppointments); } m_ucAppointments.BringToFront(); }
/// <summary> /// This function initializes all the controllers namely /// dashbaord, courses, and appointments. /// </summary> private void InitializeAllTabs() { m_ucDashboard = new StudentDashboardUC(this); m_ucDashboard.Dock = DockStyle.Fill; m_ucCourses = new StudentCourseUC(this); m_ucCourses.Dock = DockStyle.Fill; m_ucAppointments = new AppointmentControl(this, true); m_ucAppointments.Dock = DockStyle.Fill; /// Adds all the initialized contollers to the panel. contentPanel.Controls.Add(m_ucDashboard); contentPanel.Controls.Add(m_ucCourses); contentPanel.Controls.Add(m_ucAppointments); }
public FacultyScheduleUC(object parent) { appControl = (AppointmentControl)parent; firstTime = true; InitializeComponent(); }