private void LoadChiMuc()
        {
            dmtt = appList.GetDMTinhThanh();
            cboTinhThanh.DataSource = dmtt;
            cboTinhThanh.Text       = "";

            dmtp = appList.GetDMAllThanhPho();
        }
예제 #2
0
        private void FillDataToForm()
        {
            foreach (var tt in app.GetDMTinhThanh())
            {
                AddLVTinh(tt.MaTinh, tt.TenTinh);
            }

            foreach (var tp in app.GetDMAllThanhPho())
            {
                AddLVThanhPho(tp.MaThanhPho, tp.TenThanhPho);
            }

            foreach (var dt in app.GetDMDanToc())
            {
                AddLVDanToc(dt.Id, dt.TenDanToc);
            }

            foreach (var td in app.GetDMTrinhDoHocVan())
            {
                AddLVTrinhDo(td.Id, td.TrinhDo);
            }
        }