﻿using System.Windows;
using System.Collections.Generic;
using BLL;

namespace Polymorphism_3 {
    public partial class MainWindow : Window {
        private List<Animal> _animals;

        public MainWindow () {
            InitializeComponent();

            _animals = Animal.GetAnimals();
        }

        public void BtnGo_Click(object sender, RoutedEventArgs e) {
            TxtOutput.Text = string.Empty; // Clear the box first

            foreach (Animal animal in _animals)
                TxtOutput.Text += animal;
        }
    }
}
