protected override void OnLoad(EventArgs e) { using (ProvinceProvider provinceProvider = new ProvinceProvider()) { cmbProvince.Properties.DataSource = provinceProvider.GetAllActive(); } }
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(); } }
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(); } }