private void addProductButton_Click(object sender, EventArgs e) { Product product = CreateProduct(); SaveProduct.serializeProduct(product); this.Close(); }
private void showProductsButton_Click(object sender, EventArgs e) { productInformText.Clear(); List <Product> products = SaveProduct.deserializeProducts(); if (products != null) { PrintProducts(products); } }