private void btnMiseAJour_Click(object sender, RoutedEventArgs e) { if (dgPatientTrouver.SelectedItem != null) { NouveauPatient miseAjour = new NouveauPatient((patient)dgPatientTrouver.SelectedItem); miseAjour.ShowDialog(); } else { MessageBox.Show("Veuillez selectionner un patient tout d'abord", "Attention" , MessageBoxButton.OK, MessageBoxImage.Error); } }
private void btnNouveauPatient_Click(object sender, RoutedEventArgs e) { NouveauPatient AjoutPatient = new NouveauPatient(); AjoutPatient.ShowDialog(); }
private void btnmodifer_Click(object sender, RoutedEventArgs e) { NouveauPatient modifPatient = new NouveauPatient(cePatient); modifPatient.ShowDialog(); }