Ejemplo n.º 1
0
        private void LoadDatabox()
        {
            SelectedCbx sel   = new SelectedCbx();
            var         model = sel.GetCbxLoaiVT();

            this.cbxLoaiVT.DataSource    = model;
            this.cbxLoaiVT.ValueMember   = "ValueMember";
            this.cbxLoaiVT.DisplayMember = "DisplayMember";
        }
Ejemplo n.º 2
0
        private void LoadComboBox()
        {
            SelectedCbx sel = new SelectedCbx();

            cbxLoaiVT.DataSource    = sel.GetCbxLoaiVT();
            cbxLoaiVT.DisplayMember = "DisplayMember";
            cbxLoaiVT.ValueMember   = "ValueMember";


            cbxNhaCC.DataSource    = sel.GetCbxNCC();
            cbxNhaCC.DisplayMember = "DisplayMember";
            cbxNhaCC.ValueMember   = "ValueMember";
        }