private void btnTimKiem_Click(object sender, EventArgs e)
 {
     grcBase.DataSource =
         KhaiBaoDMDataProvider.Search(new DMListInfor {
         Name = txtTimKiemTen.Text.Trim()
     });
 }
        public void TestListDM05_InsertSuccess()
        {
            frmDM_ListDM frm = new frmDM_ListDM();

            frm.Oid   = 0;
            frm.isAdd = true;
            frmChiTiet_ListDM frmChiTietListDM = new frmChiTiet_ListDM(frm);

            frmChiTietListDM.SetInput("Danh mục 1", "tbl_dm_1", 1);
            frmChiTietListDM.TestSave();
            List <DMListInfor> list = KhaiBaoDMDataProvider.Search(new DMListInfor {
                TblName = "tbl_dm_1", Name = "Danh mục 1"
            });

            Assert.AreEqual(list.Count, 1);
        }