private void btnSuaTacGia_Click(object sender, EventArgs e) { try { if (txtTenTG.Text != "") { TacGiaBUS TacGiaBUS = new TacGiaBUS(); TacGiaBUS.SuaTacGia(txtMaTG.Text, txtTenTG.Text); MessageBox.Show("Cập nhật thành công", "THÔNG BÁO"); LoadDanhSachTacGia(); } else { MessageBox.Show("Xin vui lòng nhập tên thể loại !!!", "THÔNG BÁO"); txtTenTG.Focus(); } } catch (Exception ex) { MessageBox.Show("Cập nhật thất bại - Lỗi :" + ex.ToString()); } }