コード例 #1
0
        private void addProductButton_Click(object sender, EventArgs e)
        {
            Product product = CreateProduct();

            SaveProduct.serializeProduct(product);
            this.Close();
        }
コード例 #2
0
        private void showProductsButton_Click(object sender, EventArgs e)
        {
            productInformText.Clear();
            List <Product> products = SaveProduct.deserializeProducts();

            if (products != null)
            {
                PrintProducts(products);
            }
        }