コード例 #1
0
ファイル: CheesePizza.cs プロジェクト: bmenadue/OOP3
 public override void Prepare()
 {
     Console.WriteLine("Preparing " + Name);
     dough  = ingredientFactory.createDough();
     sauce  = ingredientFactory.createSauce();
     cheese = ingredientFactory.createCheese();
 }
コード例 #2
0
ファイル: ClamPizza.cs プロジェクト: PJurk/WzorceProjektowe
 public override void prepare()
 {
     Console.WriteLine("Preparing" + name);
     dough = ingredientFactory.createDough();
     sauce = ingredientFactory.createSauce();
     clam  = ingredientFactory.createClam();
 }
コード例 #3
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + this.name);
     this.dough  = ingredientFactory.createDough();
     this.sauce  = ingredientFactory.createSauce();
     this.cheese = ingredientFactory.createCheese();
 }
コード例 #4
0
 public override void Prepare()
 {
     Console.WriteLine("准备:" + name);
     dough  = _pizzaIngredientFactory.createDough();
     sauce  = _pizzaIngredientFactory.createSauce();
     cheese = _pizzaIngredientFactory.createCheese();
 }
コード例 #5
0
 public override void Prepare()
 {
     dough  = ingredientFactory.createDough();
     sauce  = ingredientFactory.createSauce();
     cheese = ingredientFactory.createCheese();
     clams  = ingredientFactory.createClams();
 }
コード例 #6
0
ファイル: VeggiePizza.cs プロジェクト: bmenadue/OOP3
 void prepare()
 {
     Console.WriteLine("Preparing " + Name);
     dough   = ingredientFactory.createDough();
     sauce   = ingredientFactory.createSauce();
     cheese  = ingredientFactory.createCheese();
     veggies = ingredientFactory.createVeggies();
 }
コード例 #7
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + Name);
     Dough   = ingredientFactory.createDough();
     Sauce   = ingredientFactory.createSauce();
     Cheese  = ingredientFactory.createCheese();
     Veggies = ingredientFactory.createVeggies();
 }
コード例 #8
0
 public override void Prepare()
 {
     Console.WriteLine("准备:" + name);
     dough  = _pizzaIngredientFactory.createDough();
     sauce  = _pizzaIngredientFactory.createSauce();
     cheese = _pizzaIngredientFactory.createCheese();
     clam   = _pizzaIngredientFactory.createClam();//纽约工厂就会使用新鲜的蛤蜊,芝加哥工厂就会用冷冻的蛤蜊。
 }
コード例 #9
0
 public override void prepare()
 {
     Console.WriteLine("准备:" + name);
     dough   = ingredientFactory.createDough();
     sauce   = ingredientFactory.createSauce();
     cheese  = ingredientFactory.createCheese();
     veggies = ingredientFactory.createVeggies();
 }
コード例 #10
0
ファイル: ClamPizza.cs プロジェクト: bmenadue/OOP3
 public void prepare()
 {
     Console.WriteLine("Preparing " + Name);
     dough  = ingredientFactory.createDough();
     sauce  = ingredientFactory.createSauce();
     cheese = ingredientFactory.createCheese();
     clam   = ingredientFactory.createClams();
 }
コード例 #11
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + name);
     this.dough     = ingredientFactory.createDough();
     this.sauce     = ingredientFactory.createSauce();
     this.cheese    = ingredientFactory.createCheese();
     this.veggies   = ingredientFactory.createVeggies();
     this.pepperoni = ingredientFactory.createPepperoni();
 }
コード例 #12
0
        public override void prepare()
        {
            Form1 f1 = (Form1)Application.OpenForms["Form1"];

            dough     = ingredientfactory.createDough();
            sauce     = ingredientfactory.createSauce();
            pepperoni = ingredientfactory.createPepperoni();

            f1.GB_Status_AppendText_Nextline(dough, Color.Blue);
            f1.GB_Status_AppendText_Nextline(sauce, Color.Blue);
            f1.GB_Status_AppendText_Nextline(pepperoni, Color.Blue);
        }
コード例 #13
0
ファイル: ConcretePizzas.cs プロジェクト: xuejiaW/Study-Notes
 public override void prepare()
 {
     sauce = ingredientFactory.createSauce();
     onion = ingredientFactory.createOnion();
 }