private void btnSua_Click(object sender, EventArgs e) { string makhoa = txtMaKhoa.Text; string tenkhoa = txtTenKhoa.Text; UtilityDB data = new UtilityDB(); bool kq = data.updateKhoa(makhoa, tenkhoa, serverName, database, user, password); if (kq == true) { MessageBox.Show("Sửa khoa có mã khoa " + makhoa + " thành công", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); HienDanhSachKhoaLenDataGridView(); } else { MessageBox.Show("Sửa khoa có mã khoa " + makhoa + " thất bại", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }