private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     SoTLmax = THAMSOBUS.Instance.GetDSQuiDinh()[0].SoLuongTheLoaiMax;
     if (bandedGridView1.RowCount < SoTLmax)
     {
         frmThemTheLoai addTheLoai = new frmThemTheLoai();
         addTheLoai.ShowDialog();
     }
     else
     {
         XtraMessageBox.Show("Đã vượt quá số lượng thể loại cho phép!", "Cảnh báo!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmThemTheLoai addtl = new frmThemTheLoai();

            addtl.ShowDialog();
            var a = QLTV_BUS.TACGIABUS.Instance.GetTacGia();

            lkedit_TacGia.Properties.DataSource    = a;
            lkedit_TacGia.Properties.ValueMember   = "MaTacGia";
            lkedit_TacGia.Properties.DisplayMember = "TenTacGia";
            var b = QLTV_BUS.THELOAIBUS.Instance.GetTheLoai();

            lkedit_TheLoai.Properties.DataSource    = b;
            lkedit_TheLoai.Properties.ValueMember   = "MaTheLoai";
            lkedit_TheLoai.Properties.DisplayMember = "TenTheLoai";
            var c = QLTV_BUS.TINHTRANGBUS.Instance.GetTinhTrang();

            lkedit_TinhTrang.Properties.DataSource    = c;
            lkedit_TinhTrang.Properties.ValueMember   = "MaTinhTrang";
            lkedit_TinhTrang.Properties.DisplayMember = "TenTinhTrang";
        }
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmThemTheLoai addTheLoai = new frmThemTheLoai();

            addTheLoai.ShowDialog();
        }