public OlivesTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
示例#2
0
 public NormalCrust(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public SunDriedTomatoes(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public SpinchTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
示例#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;
 }
示例#7
0
 private void button5_Click(object sender, EventArgs e)
 {
     currentPizza = new SunDriedTomatoes(currentPizza);
     updateDisplay();
 }
示例#8
0
 private void button4_Click(object sender, EventArgs e)
 {
     currentPizza = new SpinchTopping(currentPizza);
     updateDisplay();
 }
示例#9
0
 private void button3_Click(object sender, EventArgs e)
 {
     currentPizza = new PepperoniTopping(currentPizza);
     updateDisplay();
 }
示例#10
0
 public DeepDish(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }
 public PepperoniTopping(PizzaClass currPizza)
 {
     this.currentPizza = currPizza;
 }