Example #1
0
 private void AnimalAdd_Click(object sender, EventArgs e)
 {
     if (RecentAnimal() != null)
     {
         var result = train.TrainWagonCycleAdd(RecentAnimal());
         MessageBox.Show(result);
         AddToListbox1();
     }
     else
     {
         MessageBox.Show("You didn't put the correct data in.");
     }
 }