public void LoadDanhSachTC()
        {
            var dao = new NoiDungChiTietDAO();
            var lst = dao.GetAll();

            cbbDanhSachTC.Properties.DataSource    = lst;
            cbbDanhSachTC.Properties.ValueMember   = "MaCT";
            cbbDanhSachTC.Properties.DisplayMember = "NoiDung";
        }
        public void LoadDanhSachNDCT()
        {
            gcDanhSach.DataSource = null;
            gcDanhSach.Controls.Clear();
            var dao = new NoiDungChiTietDAO();
            var lst = new List <NoiDungChiTiet>();
            var ids = string.Join(",", cbbDanhSachTC.Properties.Items.GetCheckedValues());
            var ser = txtSearch.Text;

            if (string.IsNullOrEmpty(ids))
            {
                lst = dao.GetAll(ser);
            }
            else
            {
                lst = dao.GetAllByMaKhoa(ids, ser);
            }

            gcDanhSach.DataSource = lst;
        }