Exemplo n.º 1
0
 private void LoadKhoMacDinh()
 {
     lkpKhoMacDinh.Properties.DataSource    = KhoHangBUS.LayToanBoKhoHang();
     lkpKhoMacDinh.Properties.DisplayMember = "TenKho";
     lkpKhoMacDinh.Properties.ValueMember   = "MaKho";
     if (!ReferenceEquals(((List <KhoHangDTO>)lkpKhoMacDinh.Properties.DataSource)[0], null))
     {
         lkpKhoMacDinh.EditValue = ((List <KhoHangDTO>)lkpKhoMacDinh.Properties.DataSource)[0].MaKho;
     }
 }
Exemplo n.º 2
0
 private void LoadGridKhoHang()
 {
     gcKhoHang.DataSource = KhoHangBUS.LayToanBoKhoHang();
 }