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;
        }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     this.presenter = new AnimalsPresenter(this);
 }