Exemple #1
0
        private void picAtomic_Click(object sender, EventArgs e)
        {
            frmStartUp startup = (frmStartUp)this.Owner;

            strItemName = "Atomic";
            startup.addItem(strItemName);
            startup.updateTotals(startup.dblSubTotal);
        }
Exemple #2
0
        //Button Code for Clicking on Pictures to Add to Cart

        private void picDarkSide_Click(object sender, EventArgs e)
        {
            frmStartUp startup = (frmStartUp)this.Owner;

            strItemName = "The Dark Side of the Moon";
            startup.addItem(strItemName);
            startup.updateTotals(startup.dblSubTotal);
        }
Exemple #3
0
        private void picHellbilly_Click(object sender, EventArgs e)
        {
            frmStartUp startup = (frmStartUp)this.Owner;

            strItemName = "Hellbilly Deluxe";
            startup.addItem(strItemName);
            startup.updateTotals(startup.dblSubTotal);
        }
Exemple #4
0
        //Code for Add Button

        private void btnAdd_Click(object sender, EventArgs e)
        {
            //declarations
            frmStartUp startup = (frmStartUp)this.Owner;
            String     strItemName;

            //calls methods to add items to Cart after Add button clicked

            if (chkDoom.Checked)
            {
                strItemName = "Doom";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }

            if (chkMyst.Checked)
            {
                strItemName = "Myst";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }
            if (chkHalfLife.Checked)
            {
                strItemName = "Half-Life";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }

            if (chkRtcw.Checked)
            {
                strItemName = "Return to Castle Wolfenstein";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }
            if (!chkDoom.Checked && !chkMyst.Checked && !chkHalfLife.Checked && !chkRtcw.Checked)
            {
                MessageBox.Show("Nothing Selected!");
            }
        }
        //Code for Add Button

        private void btnAdd_Click(object sender, EventArgs e)
        {
            //declarations
            frmStartUp startup = (frmStartUp)this.Owner;
            String     strItemName;

            //calls methods to add items to Cart after Add button clicked

            if (radPotw.Checked)
            {
                strItemName = "Phantom of the Woods";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }
            else if (radStray.Checked)
            {
                strItemName = "The Stray";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }
            else if (radMadeGuys.Checked)
            {
                strItemName = "Made Guys";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }

            else if (radSchism.Checked)
            {
                strItemName = "Schism";
                startup.addItem(strItemName);
                startup.updateTotals(startup.dblSubTotal);
            }
            else
            {
                MessageBox.Show("Nothing Selected!");
            }
        }