Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form1 fm = new Form1();

            try
            {
                ProductFunc.Add_NewProduct(fm.treeView1, textBox1.Text, Convert.ToInt32(textBox2.Text),
                                           Convert.ToDouble(textBox3.Text), Convert.ToDouble(textBox4.Text), Convert.ToDouble(textBox5.Text),
                                           Convert.ToDouble(textBox6.Text), Convert.ToInt32(textBox7.Text));
            }
            catch { return; }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form1 fm = new Form1();

            ProductFunc.Add_NewCategory(fm.treeView1, tb_newcat.Text);
        }