private void checkBox3_CheckedChanged(object sender, EventArgs e) { if (checkBox3.Checked == true) { pizza1 = new cOnions(pizza1); label2.Text = pizza1.getDesc(); double total = pizza1.cost(); total2 = System.Convert.ToString(total); label3.Text = "$" + total2; } }
public cNormal(cPizza thePizza) { this.thePizza = thePizza; }
public cGPepper(cPizza thePizza) { this.thePizza = thePizza; }
public cFlatBread(cPizza thePizza) { this.thePizza = thePizza; }
public cDeepDish(cPizza thePizza) { this.thePizza = thePizza; }
public cHam(cPizza thePizza) { this.thePizza = thePizza; }
private void radioButton6_CheckedChanged(object sender, EventArgs e) { if (radioButton6.Checked == true) { pizza1 = new cNormal(pizza1); label2.Text = pizza1.getDesc(); double total = pizza1.cost(); total2 = System.Convert.ToString(total); label3.Text = "$" + total2; //label2.Refresh(); } }
private void radioButton3_CheckedChanged(object sender, EventArgs e) { pizza1 = new cLargePizza(); label2.Text = pizza1.getDesc(); double total = pizza1.cost(); total2 = System.Convert.ToString(total); label3.Text = "$" + total2; Refresh(); }
public cMballs(cPizza thePizza) { this.thePizza = thePizza; }
public cOnions(cPizza thePizza) { this.thePizza = thePizza; }