Beispiel #1
0
        private void btnCart_Click(object sender, EventArgs e)
        {
            frmShoppingCart shoppingCartForm = new frmShoppingCart();

            shoppingCartForm.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnAddShopCart_Click(object sender, EventArgs e)
        {
            // sends output after button click
            merlotQty     = txtMerlotQty.Text;
            cabernetQty   = txtCabernetQty.Text;
            chardonnayQty = txtChardonnayQty.Text;

            merlotPrice     = lblMerlotPrice.Text;
            cabernetPrice   = lblCabernetPrice.Text;
            chardonnayPrice = lblChardonnayPrice.Text;

            // to send only products with quantity
            if (txtMerlotQty.Text == "0")
            {
                merlotPrice = "0.0";
            }
            if (txtCabernetQty.Text == "0")
            {
                cabernetPrice = "0.0";
            }
            if (txtChardonnayQty.Text == "0")
            {
                chardonnayPrice = "0.0";
            }

            // to delete text after getting the output
            txtMerlotQty.Text     = "0";
            txtCabernetQty.Text   = "0";
            txtChardonnayQty.Text = "0";

            frmShoppingCart ShoppingCartForm = new frmShoppingCart();

            ShoppingCartForm.Show();
            this.Hide();
        }
Beispiel #3
0
        private void btnAddShopCart_Click(object sender, EventArgs e)
        {
            // sends output after button click
            vodkaQty   = txtVodkaQty.Text;
            tequilaQty = txtTequilaQty.Text;
            whiskeyQty = txtWhiskeyQty.Text;

            vodkaPrice   = lblVodkaPrice.Text;
            tequilaPrice = lblTequilaPrice.Text;
            whiskeyPrice = lblWhiskeyPrice.Text;

            // to send only products with quantity
            if (txtVodkaQty.Text == "0")
            {
                vodkaPrice = "0.0";
            }
            if (txtTequilaQty.Text == "0")
            {
                tequilaPrice = "0.0";
            }
            if (txtWhiskeyQty.Text == "0")
            {
                whiskeyPrice = "0.0";
            }

            // to delete text after getting the output
            txtVodkaQty.Text   = "0";
            txtTequilaQty.Text = "0";
            txtWhiskeyQty.Text = "0";

            frmShoppingCart ShoppingCartForm = new frmShoppingCart();

            ShoppingCartForm.Show();
            this.Hide();
        }
Beispiel #4
0
        private void btnAddShopCart_Click(object sender, EventArgs e)
        {
            // sends output after button click
            domesticQty = txtDomesticQty.Text;
            importedQty = txtImportedQty.Text;
            ipaQty      = txtIpaQty.Text;

            domesticPrice = lblDomesticPrice.Text;
            importedPrice = lblImportedPrice.Text;
            ipaPrice      = lblIpaPrice.Text;

            // to send only products with quantity
            if (txtDomesticQty.Text == "0")
            {
                domesticPrice = "0.0";
            }
            if (txtImportedQty.Text == "0")
            {
                importedPrice = "0.0";
            }
            if (txtIpaQty.Text == "0")
            {
                ipaPrice = "0.0";
            }

            // to delete text after getting the output
            txtDomesticQty.Text = "0";
            txtImportedQty.Text = "0";
            txtIpaQty.Text      = "0";

            domesticSize = cmbDomesticQty.Text;
            importedSize = cmbImportedQty.Text;
            ipaSize      = cmbIpaQty.Text;

            frmShoppingCart ShoppingCartForm = new frmShoppingCart();

            ShoppingCartForm.Show();
            this.Hide();
        }