Beispiel #1
0
 public void Cutting_c(Vanil t)
 {
     if (t.cutting)
     {
         t.cutting = false;
     }
 }
 private void button15_Click(object sender, EventArgs e)
 {
     potato = new Ice[3];
     for (int i = 0; i < potato.Length; i++)
     {
         potato[i] = new Ice();
     }
     carrot = new Chokolate[2];
     for (int i = 0; i < carrot.Length; i++)
     {
         carrot[i] = new Chokolate();
     }
     onion = new Icecream[2];
     for (int i = 0; i < onion.Length; i++)
     {
         onion[i] = new Icecream();
     }
     chicken = new Vanil();
     lapsha  = new Milk();
 }
Beispiel #3
0
 public void AddChicken(Vanil c)
 {
     chicken = c;
 }