Пример #1
0
 protected override void OnLoad(EventArgs e)
 {
     using (ProvinceProvider provinceProvider = new ProvinceProvider())
     {
         cmbTinh.Properties.DataSource = provinceProvider.GetAllActive();
     }
     using (DistrictProvider provider = new DistrictProvider())
     {
         cmbHuyen.Properties.DataSource = provider.GetAllActive();
     }
 }
Пример #2
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     using (DistrictProvider provider = new DistrictProvider())
     {
         cmbDistrict.Properties.DataSource = provider.GetAllActive();
     }
     using (ProvinceProvider provider = new ProvinceProvider())
     {
         cmbProvince.Properties.DataSource = provider.GetAllActive();
     }
 }