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;
            }
        }
Exemple #2
0
 public cNormal(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
Exemple #3
0
 public cGPepper(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
Exemple #4
0
 public cFlatBread(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
Exemple #5
0
 public cDeepDish(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
Exemple #6
0
 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();
        }
Exemple #9
0
 public cMballs(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
Exemple #10
0
 public cOnions(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }