public AddAnimalWindow(IAnimalsPresenter presenter) { InitializeComponent(); this.presenter = presenter; List <string> animals = new List <string>(); foreach (Animal animal in presenter.Animals) { animals.Add(" > " + animal.Name + ": " + string.Join(",", animal.Facts)); } icDefinedAnimals.ItemsSource = animals; }
public MainWindow() { InitializeComponent(); this.presenter = new AnimalsPresenter(this); }