public WorldViewModel(World world) { World = world; this.Population = new ObservableCollection <BoidViewModel>(this.World.Population.Select(boid => new BoidViewModel(boid))); this.World.Population.CollectionChanged += HandleChange; this.Parameters = new ParametersViewModel(this.World.Bindings); }
public SpeciesViewModel(BoidSpecies species, SimulationViewModel parent) { this.sim = parent; this.Species = species; this.AddSpecies = new AddSpeciesCommand(this); Parameters = new ParametersViewModel(species.Bindings); }