コード例 #1
0
 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);
 }
コード例 #2
0
 public SpeciesViewModel(BoidSpecies species, SimulationViewModel parent)
 {
     this.sim        = parent;
     this.Species    = species;
     this.AddSpecies = new AddSpeciesCommand(this);
     Parameters      = new ParametersViewModel(species.Bindings);
 }