示例#1
0
 private void button15_Click(object sender, EventArgs e)
 {
     chicken = new Chicken[3];
     for (int i = 0; i < chicken.Length; i++)
     {
         chicken[i] = new Chicken();
     }
     apple = new Apple[2];
     for (int i = 0; i < apple.Length; i++)
     {
         apple[i] = new Apple();
     }
     oil = new Oil();
     MessageBox.Show("Начинаем", "Кухня", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
 public void AddOil(Oil ol)
 {
     oil = ol;
 }