private void btnXoa_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (TheLoai_BUS.TimTL_TheoMa(txtMaLoai.Text.Trim()) == null)
     {
         XtraMessageBox.Show("Bạn chưa chọn dòng cần xóa! ", "Chú ý", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         DialogResult thongbao = XtraMessageBox.Show("Bạn có chắc muốn xóa thể loại này không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (thongbao == DialogResult.No)
         {
             XtraMessageBox.Show("Bạn đã hủy thao tác xóa ", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else if (thongbao == DialogResult.Yes)
         {
             Theloai_DTO TL = new Theloai_DTO();
             TL.MaLoai = txtMaLoai.Text;
             if (TheLoai_BUS.XoaTL(txtMaLoai.Text.Trim()))
             {
                 frmTheLoai_Load(sender, e);
                 XtraMessageBox.Show("Bạn đã xóa thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         }
     }
 }