private void btnSavePerson_Click(object sender, EventArgs e) { try { if (person.PersonID != 0) { personDAL.PersonUpdate(person.PersonID, txtFirstName.Text, txtLastName.Text, txtEmail.Text, txtPhone.Text); } else { personDAL.PersonCreate(txtFirstName.Text, txtLastName.Text, txtEmail.Text, txtPhone.Text); } ClearTextboxes(); DisableDeleteButton(); FillDataGridView(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }