// Provide two additional methods public void Fill() { List <Product> products = ProductDB.GetProducts(); foreach (Product product in products) { base.Add(product); } }
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(); }
private void frmBookProductMainenance_Load(object sender, EventArgs e) { products = ProductDB.GetProducts(); FillProductListBox(); }
public void Fill() => products = ProductDB.GetProducts();