private void BtnModifier_Click(object sender, RoutedEventArgs e) { if (grido.SelectedItem == null) { MessageBox.Show("Veuillez selectionner un etudiant"); } else { etudiant selected = (etudiant)grido.SelectedItem; Ajouter a = new Ajouter(selected); a.Show(); this.Close(); } }
private void BtnAjouter_Click(object sender, RoutedEventArgs e) { Ajouter a = new Ajouter(); a.Show(); }