Example #1
0
 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";
 }
Example #2
0
        public List <Product> GetAll()
        {
            ProductDal dao = new ProductDal();

            List <Product> lista = dao.GetAll();

            return(lista);
        }
 public List <Product> GetAll()
 {
     //Business Code
     return(_productDal.GetAll());
 }
Example #4
0
        public List <Product> GetAll()
        {
            ProductDal productDal = new ProductDal();

            return(productDal.GetAll());
        }
Example #5
0
 private void PopulateDataGridView()
 {
     inventoryDataGridView.DataSource = ProductDal.GetAll();
 }
 public List <Product> GetAll()
 {
     return(_productDal.GetAll());
 }
Example #7
0
 private void GettAll()
 {
     dataGridView1.DataSource = productDal.GetAll();
 }
Example #8
0
 private void LoadProducts()
 {
     dgwProducts.DataSource = _productDal.GetAll();
 }
Example #9
0
 private void PopulateDataGridView()
 {
     editGridView.DataSource = ProductDal.GetAll();
 }
Example #10
0
 private void ListProduct()
 {
     dgwProduct.DataSource = _productDal.GetAll();
 }
 private void ProductList()
 {
     dgwProducts.DataSource = _productDal.GetAll();
 }