Пример #1
0
 public QuanlyKho()
 {
     listKho = new List <eKho>();
     bllKho  = new Kho_BLL();
     listKho = bllKho.LayDanhSachKho();
     InitializeComponent();
     DuaDuLieuLenTreeViewKho(treeViewKho, listKho);
 }
 public void DuadulieulencomboboxMaKho(ComboBox cb)
 {
     //this.cbbMaKho.DataSource = bllKho.LayDanhSachKho();
     //this.cbbMaKho.DisplayMember = "_maKho";
     //this.cbbMaKho.ValueMember = "_maKho";
     this.cbbMaKho.DataSource    = bllKho.LayDanhSachKho();
     this.cbbMaKho.DisplayMember = "_maKho";
     this.cbbMaKho.ValueMember   = "_maKho";
 }