Exemple #1
0
 //event handler to load BookAppointment Form
 private void LoadForm(object sender, EventArgs e)
 {
     if (sender == AppointmentButton)
     {
         Form Appointment = new BookAppointmentForm();
         Appointment.Show();
     }
 }
Exemple #2
0
 // Events for trigger the proper form when the respective form button is clicked
 private void LoadForm(object sender, EventArgs e)
 {
     if (sender == CreateProfileButton) // -------- Create Patient Form
     {
         Form CreatePatient = new CreatePatienForm();
         CreatePatient.Show();
     }
     else if (sender == BookAppointmentButton)  // -------- Book Appointment Form
     {
         Form BookAppointment = new BookAppointmentForm();
         BookAppointment.Show();
     }
     else if (sender == EditAppointmentButton) // -------- Edit Appointment Form
     {
         Form EditAppointment = new EditAppointmentForm();
         EditAppointment.Show();
     }
     else if (sender == DoctorListButton) // -------- Doctor List Form
     {
         Form DoctorsList = new DoctorsListForm();
         DoctorsList.Show();
     }
 }