/// <summary> /// Bouton pour faire apparaître la fenêtre d'ajout d'un contact /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAjouter_Click(object sender, RoutedEventArgs e) { PageModif win2 = new PageModif(this) { Owner = this }; win2.Show(); }
/// <summary> /// Bouton pour modifier un contact existant /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnModifier_Click(object sender, RoutedEventArgs e) { PageModif win2 = new PageModif(Liste.Registre[LstContacts.SelectedIndex], LstContacts.SelectedIndex, this) { Owner = this }; win2.Show(); }