Exemplo n.º 1
0
 private void BoutonEditContact_Click(object sender, RoutedEventArgs e)
 {
     BLL.BLL BLL_EDIT_CONTACT = new BLL.BLL();
     if (BLL_EDIT_CONTACT.editContact(editContactFirtsName.Text, editContactSecondName.Text, editContactEmail.Text, editContactPhone.Text, editContactAge.Text))
     {
         editContactFirtsName.Text  = "";
         editContactSecondName.Text = "";
         editContactEmail.Text      = "";
         editContactPhone.Text      = "";
         editContactAge.Text        = "";
         messageEditContact.Content = "Contact edited";
     }
     else
     {
         messageEditContact.Content = "Contact not found";
     }
 }