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; }
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; }
private void button5_Click(object sender, EventArgs e) { currentPizza = new SunDriedTomatoes(currentPizza); updateDisplay(); }
private void button4_Click(object sender, EventArgs e) { currentPizza = new SpinchTopping(currentPizza); updateDisplay(); }
private void button3_Click(object sender, EventArgs e) { currentPizza = new PepperoniTopping(currentPizza); updateDisplay(); }
public DeepDish(PizzaClass currPizza) { this.currentPizza = currPizza; }
public PepperoniTopping(PizzaClass currPizza) { this.currentPizza = currPizza; }