Exemplo n.º 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();
        }
Exemplo n.º 2
0
        // 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();
        }
Exemplo n.º 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();
        }