Exemplo n.º 1
0
        //START PRODUCTS TAB

        private void AddProduct_Click(object sender, EventArgs e)
        {
            ProductDetails pd = new ProductDetails(this);

            if (pd.ShowDialog() == DialogResult.OK)
            {
                Product p = new Product(pd.Product_Name, pd.Product_ID, pd.Price, pd.Category, pd.Quantity);
                products.Add(p);
                loadproductdata();
                ProductView.Update();
                ProductView.Refresh();
            }
        }