Example #1
0
        /// <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();
        }
Example #2
0
        /// <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();
        }