Beispiel #1
0
 public void InitCbNoiCapCMND()
 {
     cbNoiCapCMND.DataSource    = thanhPhoServices.GetAllThanhPho();
     cbNoiCapCMND.DisplayMember = "tenTP";
     cbNoiCapCMND.ValueMember   = "idThanhPho";
     cbNoiCapCMND.SelectedIndex = -1;
 }
Beispiel #2
0
        private void InitThanhPho()
        {
            ThanhPho firstItem = new ThanhPho {
                idThanhPho = 0, maTP = "All", tenTP = "Tất Cả", ThongTinNhanVIens = null
            };
            List <ThanhPho> listThanhPho = new List <ThanhPho>();

            listThanhPho.Add(firstItem);
            listThanhPho.AddRange(thanhPhoServices.GetAllThanhPho());
            comboNoiO.DataSource    = listThanhPho;
            comboNoiO.DisplayMember = "tenTP";
            comboNoiO.ValueMember   = "idThanhPho";
        }