private void btnXoan_Click_1(object sender, EventArgs e) { if (currentIDNhom == -1) { MessageBox.Show("Vui long chon Nhom"); return; } Nhom nhom = new Nhom(); nhom.IDNhom = currentIDNhom; nhom.TenNhom = txtTenNhom.Text.Trim(); nhom.status = 0; if (NhomController.CapNhatNhom(nhom) == false) { MessageBox.Show("Khong xoa duoc Nhom"); return; } currentIDNhom = -1; showDSNhom(); }