private void btnAddCategory_Click(object sender, EventArgs e) { if (CheckDataCategoryToAdd()) { string CategoryID = txtCategoryID.Text; string CategoryName = txtCategoryName.Text; Category dto = new Category(CategoryID, CategoryName); if (busCT.Add(dto)) { MessageBox.Show("Add success !!!"); } else { MessageBox.Show("Add fail !!!"); } LoadData(); } }