Ejemplo n.º 1
0
 private void btnEnregistrerContact_Click(object sender, EventArgs e)
 {
     getContact();
     if (contact != null)
     {
         if (isNameValid())
         {
             updatingContact?.Invoke(contact);
             this.DialogResult = DialogResult.OK;
         }
         else
         {
             MessageBox.Show("Le contact doit avoir un nom", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
 }