void LoadData() { dgwProducts.DataSource = dal.GetAll(); dgwProducts.Columns[0].Visible = false; dgwProducts.Columns[1].HeaderText = "Name"; dgwProducts.Columns[2].HeaderText = "Unit Price"; dgwProducts.Columns[3].HeaderText = "Stock Amount"; }
public List <Product> GetAll() { ProductDal dao = new ProductDal(); List <Product> lista = dao.GetAll(); return(lista); }
public List <Product> GetAll() { //Business Code return(_productDal.GetAll()); }
public List <Product> GetAll() { ProductDal productDal = new ProductDal(); return(productDal.GetAll()); }
private void PopulateDataGridView() { inventoryDataGridView.DataSource = ProductDal.GetAll(); }
public List <Product> GetAll() { return(_productDal.GetAll()); }
private void GettAll() { dataGridView1.DataSource = productDal.GetAll(); }
private void LoadProducts() { dgwProducts.DataSource = _productDal.GetAll(); }
private void PopulateDataGridView() { editGridView.DataSource = ProductDal.GetAll(); }
private void ListProduct() { dgwProduct.DataSource = _productDal.GetAll(); }
private void ProductList() { dgwProducts.DataSource = _productDal.GetAll(); }