예제 #1
0
        private async void OnMovieReceived(StarWarsMoviesViewModel arg1, SWMovie arg2)
        {
            Movie = arg2;
            for (int i = 0; Movie.PlanetUris.Count > i; i++)
            {
                planets.Add(await repo.GetPlanet(Movie.PlanetUris[i]));
            }

            Planet = planets[0];


        }
예제 #2
0
        private async void OnMovieReceived(SWMovie obj)
        {
            Movie = obj;
            for(int i = 0; Movie.PlanetUris.Count > i; i++)
            {
                planets.Add( await repo.GetPlanet(Movie.PlanetUris[i]));
            }
           
            Planet = planets[0];
            

        }