private void checkBox2_CheckedChanged(object sender, EventArgs e) { if (checkBox2.Checked == true) { pizza1 = new cHam(pizza1); label2.Text = pizza1.getDesc(); double total = pizza1.cost(); total2 = System.Convert.ToString(total); label3.Text = "$" + total2; } }
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(); }