private async Task SetupUi() { var task = _itunesService.GetMoviesAsync(Lib.Model.iTunes.Movies.Movie.ListingType.TopRentals, 25, _genre); this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse); this.Title = _localizeLookupService.GetLocalizedString("TopMovies"); _movies = await task; }
private async Task SetupUi() { var task = _itunesService.GetMoviesAsync(Lib.Model.iTunes.Movies.Movie.ListingType.TopRentals, 25, _genre); this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse); this.Title = _localizeLookupService.GetLocalizedString("TopMovies"); _movies = await task; }
private async Task GetMovies() { var progressDialog = ProgressDialog.Show(Activity, "Please wait", "Loading...", true); Activity.SetProgressBarIndeterminate (true); Activity.SetProgressBarIndeterminateVisibility (true); var task = _itunesService.GetMoviesAsync(_type, 25, _genre); _movies = await task; _movieAdapter = new MovieAdapter (this.Activity, _movies); _listView.Adapter = _movieAdapter; progressDialog.Hide (); }
private async Task GetMovies() { var progressDialog = ProgressDialog.Show(Activity, "Please wait", "Loading...", true); Activity.SetProgressBarIndeterminate(true); Activity.SetProgressBarIndeterminateVisibility(true); var task = _itunesService.GetMoviesAsync(_type, 25, _genre); _movies = await task; _movieAdapter = new MovieAdapter(this.Activity, _movies); _listView.Adapter = _movieAdapter; progressDialog.Hide(); }
public MovieAdapter(Activity context, Movie movies) { _context = context; _movies = movies; }