private void btnDeleteCustomer_Click(object sender, EventArgs e) { ResetMessages(); try { int id = int.Parse(txtDeleteCustomer.Text); customerController.DeleteCustomer(id); UpdateCustomerGrid(); } catch (Exception ex) { lblMessageCustomer.Text = ex.Message; } }