public AnimalExtraDetail(AnimalSpecy animal) { InitializeComponent(); this.animal = animal; AnimalName.Text = animal.Name; AnimalDescription.Text = animal.Description; AnimalScientificName.Text = animal.ScientificName; LoadImage(animal); }
public AnimalDetail(AnimalSpecy animal) { InitializeComponent(); this.animal = animal; AnimalName.Text = animal.Name; AnimalStatus.Text = animal.Status; AnimalLocation.Text = animal.Location; AnimalHabitat.Text = animal.Habitat; AnimalPopulation.Text = animal.Population; LoadImage(animal); }
private void LoadImage(AnimalSpecy animal) { AnimalImage.Source = animal.Image.ImageSrc; }
public static void addToFavorite(AnimalSpecy favorite) { favorites.Add(favorite); }