private void DisplayProductForm_Load(object sender, EventArgs e) { allProducts = ProductReader.Products(); foreach (var p in allProducts) { DisplayListBox.Items.Add(p); } }
private void ProductEntryForm_Load(object sender, EventArgs e) { var products = ProductReader.Products(); allProducts = products; }
private void CheckOutForm_Load(object sender, EventArgs e) => allProducts = ProductReader.Products();
private void UpdateProductForm_Load(object sender, EventArgs e) { allProducts = ProductReader.Products(); }