public ViewModelTroupList( Profile profile, Server server, ResourcePlayer resourcePlayer, ResourceVillage resourceVillage, ResourceHandler resourceHandler) { _profile = profile; _server = server; _resourcePlayer = resourcePlayer; _resourceVillage = resourceVillage; _resourceHandler = resourceHandler; //TroupCollection = CollectionViewSource.GetDefaultView( _resourceVillage.GetVillagesByPlayer( _resourcePlayer.GetPlayerByName( _profile.Local.Name ) ).OrderBy( x => x.Id ) ); TroupCollection = CollectionViewSource.GetDefaultView(_resourceHandler.CreateTroupList( )); }