private void btnAdd_Click(object sender, System.EventArgs e) { frmNewProduct newForm = new frmNewProduct(); Product product = newForm.GetNewProduct(); if (product != null) { products.Add(product); products.Save(); FillProductListBox(); } }
private void HandleChange(ProductList products) { products.Save(); FillProductListBox(); }