private void DoctorAppointmentExecute() { try { DoctorAppointment doctorAppointmentWindow = new DoctorAppointment(); patientChoice.Close(); doctorAppointmentWindow.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void DoctorAppointmentExecute() { try { DoctorAppointment view = new DoctorAppointment(); medicalDeparmentsViewByPatient.Close(); view.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }