Пример #1
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            var cosmosService = new CosmosService();
            var reviews       = await cosmosService.GetReviewsForMovie(MovieId);

            reviewListView.ItemsSource = reviews;
        }
Пример #2
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            if (movieListView.ItemsSource == null)
            {
                var cosmosService = new CosmosService();

                var movies = await cosmosService.GetAllMovies();

                movieListView.ItemsSource = movies;
            }

            movieListView.ItemSelected += MovieListView_ItemSelected;
        }