示例#1
0
 private void RunAlgoritmButton_Click(object sender, EventArgs e)
 {
     createdAnimalsBox.Items.Clear();
     filledAnimalsBox.Items.Clear();
     train.StartSorting();
     foreach (Animal animal in train.AnimalsToAdd)
     {
         createdAnimalsBox.Items.Add(animal.getString());
     }
     foreach (Wagon wagon in train.GetWagons())
     {
         filledAnimalsBox.Items.Add(wagon.ToString());
     }
 }