コード例 #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];
            

        }