private void btnSeachKH_Click_1(object sender, EventArgs e) { List <QL_SanPham> lstSP = sp_bll.searchSP(pnHienThiSanPham.Text); hienthiSanPham(lstSP); }
private void btnSeachKH_Click_1(object sender, EventArgs e) { if (txtSearchSP.Text == string.Empty) { MessageBox.Show("Chưa nhập sản phẩm"); return; } List <QL_SanPham> lstSP = sp_bll.searchSP(txtSearchSP.Text); if (lstSP.Count == 0) { MessageBox.Show("Không tìm thấy sản phẩm"); return; } hienthiSanPham(lstSP); }