public CookieDoughFlavor(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public ReesesPiecesTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public WhippedCreamTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public ChocolateFlavor(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public CherryTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
Esempio n. 6
0
        // Chocolate
        private void button2_Click(object sender, EventArgs e)
        {
            SundaeTime = new ChocolateFlavor(SundaeTime);
            scoops -= 1;

            if (scoops == 0)
            {
                Window3();
            }

            else
            {
                labelUpdate();
            }
        }
 public BananaTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
Esempio n. 8
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked == true)
            {
                SundaeTime = SundaeCreator(1);
            }
            else if (radioButton2.Checked == true)
            {
                SundaeTime = SundaeCreator(2);
            }
            else
            {
                SundaeTime = SundaeCreator(3);
            }

            Window2();
        }
Esempio n. 9
0
        private void button8_Click(object sender, EventArgs e)
        {
            if (checkBox6.Checked == true)
            {
                SundaeTime = new BananaTopping(SundaeTime);
            }

            if (checkBox7.Checked == true)
            {
                SundaeTime = new CherryTopping(SundaeTime);
            }

            if (checkBox8.Checked == true)
            {
                SundaeTime = new ChocolateSprinklesTopping(SundaeTime);
            }

            if (checkBox9.Checked == true)
            {
                SundaeTime = new GummyBearsTopping(SundaeTime);
            }

            if (checkBox10.Checked == true)
            {
                SundaeTime = new HotFudgeTopping(SundaeTime);
            }

            if (checkBox11.Checked == true)
            {
                SundaeTime = new ReesesPiecesTopping(SundaeTime);
            }

            if (checkBox12.Checked == true)
            {
                SundaeTime = new WhippedCreamTopping(SundaeTime);
            }

            labelUpdate();
        }
Esempio n. 10
0
 public CoffeeFlavor(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
Esempio n. 11
0
        // PB Cup
        private void button5_Click(object sender, EventArgs e)
        {
            SundaeTime = new PeanutButterCupFlavor(SundaeTime);
            scoops -= 1;

            if (scoops == 0)
            {
                Window3();
            }

            else
            {
                labelUpdate();
            }
        }
 public PeanutButterCupFlavor(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public GummyBearsTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public StrawberryFlavor(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public HotFudgeTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }
 public ChocolateSprinklesTopping(SundaeClass mySundae)
 {
     this.currentSundae = mySundae;
 }