Example #1
0
        // Sends you back to the AddProduct form.
        private void btnLogOut_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAddProduct frmAddProduct = new frmAddProduct(admin, new List <ProductComponent>(), description, price);

            frmAddProduct.Show();
        }
        // Sends the user back to the AddProduct form.
        private void btnEditProduct_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAddProduct frmAddProduct = new frmAddProduct(admin, productComponents, description, price);

            frmAddProduct.Show();
        }
Example #3
0
        //Takes the user to the AddProduct form.
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAddProduct frmAddProduct = new frmAddProduct(admin, new List <ProductComponent>(), "", 0);

            frmAddProduct.Show();
        }