private void AddPatient_MenuClick(object sender, RoutedEventArgs e) { RegisterPatientDialog registerPatient = new RegisterPatientDialog(this); if (registerPatient.ShowDialog() == true) { ReloadAppointmentsList(); } }
private void EditPatient_ContextMenuClick(object sender, RoutedEventArgs e) { Patient patientToUpdate = lvPatientsList.SelectedItem as Patient; if (patientToUpdate == null) { return; } RegisterPatientDialog patientUpdateDialog = new RegisterPatientDialog(this, patientToUpdate); if (patientUpdateDialog.ShowDialog() == true) { ReloadPatientsList(); } }