private string Random(Random random) { if (random.Next(animals.Count) && randomAnimal.Name != null) { txtName.Text = randomAnimal.Name; return randomAnimal.Name; } else if (randomAnimal.Specie != null) { txtSpecie.Text = randomAnimal.Specie; return randomAnimal.Specie; } else { return MessageBox.Show("Failure").ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)