Example #1
0
        private void addProductBTN_Click(object sender, EventArgs e)
        {
            Clear();
            using (addProductForm addP = new addProductForm()) {
                addP.ShowDialog();
                addP.addProductClick += new EventHandler(addP_addProductClick);
                pCodeTB.Text          = addP.getpCodes;
                pNameTB.Text          = addP.getpNames;
                priceTB.Text          = addP.getpPrice;
                dbQuantity            = Convert.ToInt32(addP.getpQuantity);

                if (addP.getpQuantity != "" && addP.getpQuantity != null)
                {
                    AvaliableQuantity = int.Parse(addP.getpQuantity);
                }
            }
        }