private void btnDeleteImplentation_Click(object sender, EventArgs e) { Implentat _deleteImplentat = new Implentat(); _deleteImplentat = CustomerDb.GetImplentationById(ImplentationiD, DatabaseId); DialogResult dialogResult = MessageBox.Show(this, "Are you sure you wish to Delete Implentation ", "Delete Implentation", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (dialogResult == DialogResult.Yes) { CustomerDb.DeleteImplmentation(_deleteImplentat); BindImplentationsForCustomer(CustomerId); } else if (dialogResult == DialogResult.No) { //do something else } BindImplentationsForCustomer(CustomerId); }