Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            Train = new Train();
            Train.MakeAnimals();
            Train.OrderWagon();
            Train.AddWagons(listBox1);
            Train.AllAnimals(listBox3);
            SizeBox.Items.Add(Animal.AnimalSize.small);
            SizeBox.Items.Add(Animal.AnimalSize.medium);
            SizeBox.Items.Add(Animal.AnimalSize.big);
            MeatEaterBox.Items.Add(true);
            MeatEaterBox.Items.Add(false);
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     Train.OrderWagon();
 }