Exemple #1
0
        private void frmChonBaoCao_Load(object sender, EventArgs e)
        {
            loaispnbus = new LoaiSP_BUS();
            lsloaiSP   = loaispnbus.DanhSachLoaiSP();

            cboSPtheoLoai.DataSource    = lsloaiSP;
            cboSPtheoLoai.DisplayMember = "TenLoaiSP";
            cboSPtheoLoai.ValueMember   = "MaLoaiSP";

            //load danh sach san pham
            sanpham = new SanPham_BUS();
            lsSP    = sanpham.DanhSachSanPham();
        }
Exemple #2
0
 private void LoadDSSP()
 {
     lsSP             = spBUS.DanhSachSanPham();
     dgvSP.DataSource = lsSP;
 }