Exemplo n.º 1
0
		//public PlanetListViewModel(IDataService ds)
		public PlanetListViewModel(IUnityContainer container)
		{
			_counter++;
			this._listPlanets = new ObservableCollection<PlanetViewModel>();
			//this._dataService = ds;
			this._dataService = container.Resolve<IDataService>();
			foreach (var p in _dataService.GetPlanets())
			{
				_listPlanets.Add(new PlanetViewModel(p));
			}
		}