Esempio 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;
     }
 }
 private void LoadGridKhoHang()
 {
     gcKhoHang.DataSource = KhoHangBUS.LayToanBoKhoHang();
 }