示例#1
0
        // Provide two additional methods
        public void Fill()
        {
            List <Product> products = ProductDB.GetProducts();

            foreach (Product product in products)
            {
                base.Add(product);
            }
        }
示例#2
0
 private void frmProductMain_Load(object sender, System.EventArgs e)
 {
     products = ProductDB.GetProducts();
     FillProductListBox();
 }
 private void frmProductMain_Load(object sender, EventArgs e)
 {
     //populate the list with products
     products = ProductDB.GetProducts();
     FillProductListBox();
 }
示例#4
0
 private void frmBookProductMainenance_Load(object sender, EventArgs e)
 {
     products = ProductDB.GetProducts();
     FillProductListBox();
 }
 public void Fill() => products = ProductDB.GetProducts();