private void btnUpdateCategory_Click(object sender, EventArgs e) { if (CheckDataCategoryToUpdate()) { string CategoryID = txtCategoryID.Text; string CategoryName = txtCategoryName.Text; Category dto = new Category(CategoryID, CategoryName); if (busCT.Update(dto)) { MessageBox.Show("Update successfully.", "Announce", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Update fail.", "Announce", MessageBoxButtons.OK, MessageBoxIcon.Information); } LoadData(); } }