예제 #1
0
 private void LoadData()
 {
     try
     {
         dtgvDSPhieuNhapHang.AutoGenerateColumns = false;
         dtDataActived = BHangHoa.GetAll();
         dtgvDSPhieuNhapHang.DataSource = dtDataActived;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Lối:" + ex);
     }
 }
예제 #2
0
 private void LoadCombobox()
 {
     cbbSanPham.DataSource    = BHangHoa.GetAll();
     cbbSanPham.ValueMember   = "MaHang";
     cbbSanPham.DisplayMember = "TenHang";
 }