// cập nhật lại danh sách thể loại
 void CapNhat()
 {
     if (txtTenTheLoai.Text == "")
     {
         MessageBox.Show("Không được bỏ trống tên thể loại!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
         txtTenTheLoai.Focus();
     }
     else
     {
         if (MessageBox.Show("Bạn thực sự muốn cập nhật thể loại này?", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
         {
             TheLoai_DTO tl = new TheLoai_DTO();
             tl.TenTheLoai = txtTenTheLoai.Text;
             tl.MaTheLoai  = int.Parse(txtMaTheLoai.Text);
             string ketQua = TheLoai_BUS.SuaTheLoai(tl);
             if (ketQua != "Success")
             {
                 MessageBox.Show(ketQua, "Lỗi");
                 return;
             }
             MessageBox.Show("Cập nhật thành công");
             HienThiDanhSachTheLoai();
         }
     }
 }