// Displays the current animal, if there is no animal left // shows the results page private void DisplayCurrentAnimal() { Animal currentAnimal = animalSpelling.GetCurrentAnimal(); imageBox.Source = new BitmapImage(currentAnimal.getAnimalImage()); userInputTextBox.MaxLength = currentAnimal.getAnimalName().Length; userInputTextBox.Text = String.Empty; analyzedNameTextBlock.Text = String.Empty; SetAnalyzedNameTextBox(""); UpdatePrompt(); }
// Returns the animal image Uri public Uri getImage() { return(animal.getAnimalImage()); }