コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: cNormal.cs プロジェクト: derek-izor/HomeRepo
 public cNormal(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #3
0
ファイル: cGPepper.cs プロジェクト: derek-izor/HomeRepo
 public cGPepper(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #4
0
ファイル: cFlatBread.cs プロジェクト: derek-izor/HomeRepo
 public cFlatBread(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #5
0
ファイル: cDeepDish.cs プロジェクト: derek-izor/HomeRepo
 public cDeepDish(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #6
0
ファイル: cHam.cs プロジェクト: derek-izor/HomeRepo
 public cHam(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #7
0
        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();
            }
        }
コード例 #8
0
        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();
        }
コード例 #9
0
ファイル: cMballs.cs プロジェクト: derek-izor/HomeRepo
 public cMballs(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }
コード例 #10
0
ファイル: cOnions.cs プロジェクト: derek-izor/HomeRepo
 public cOnions(cPizza thePizza)
 {
     this.thePizza = thePizza;
 }