public OlivesTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public NormalCrust(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public SunDriedTomatoes(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public SpinchTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
Example #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            PizzaClass pizza;
            String var = "";
            if (radioButton1.Checked == true)
            {
                var = "small";
            }
            else if (radioButton2.Checked == true)
            {
                var = "medium";
            }
            else if (radioButton3.Checked == true)
            {
                var = "large";
            }
            else
            {
                this.Close();
            }

            pizza = makePizza(var);

            if (radioButton4.Checked == true)
            {
                pizza = new NormalCrust(pizza);
            }
            else if (radioButton5.Checked == true)
            {
                pizza = new FlatBreadCrust(pizza);
            }
            else if (radioButton6.Checked == true)
            {
                pizza = new DeepDish(pizza);
            }
            else
            {
                this.Close();
            }
            currentPizza = pizza;
            part2();
        }
 public FlatBreadCrust(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
Example #7
0
 private void button5_Click(object sender, EventArgs e)
 {
     currentPizza = new SunDriedTomatoes(currentPizza);
     updateDisplay();
 }
Example #8
0
 private void button4_Click(object sender, EventArgs e)
 {
     currentPizza = new SpinchTopping(currentPizza);
     updateDisplay();
 }
Example #9
0
 private void button3_Click(object sender, EventArgs e)
 {
     currentPizza = new PepperoniTopping(currentPizza);
     updateDisplay();
 }
Example #10
0
 public DeepDish(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public PepperoniTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }