private async Task SetupUi() { var task = _itunesService.GetMusicVideosAsync(25, _genre); this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse); this.Title = _localizeLookupService.GetLocalizedString("TopMusicVideos"); _musicVideo = await task; }
private async Task SetupUi() { var task = _itunesService.GetMusicVideosAsync(25, _genre); this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse); this.Title = _localizeLookupService.GetLocalizedString("TopMusicVideos"); _musicVideo = await task; }
private async Task GetMusic() { var progressDialog = ProgressDialog.Show(Activity, "Please wait", "Loading...", true); Activity.SetProgressBarIndeterminate(true); Activity.SetProgressBarIndeterminateVisibility(true); var task = _itunesService.GetMusicVideosAsync(25, _genre); _music = await task; _musicAdapter = new MusicAdapter(this.Activity, _music); _listView.Adapter = _musicAdapter; progressDialog.Hide(); }
public MusicAdapter(Activity context, Lib.Model.iTunes.MusicVideos.MusicVideo music) { _context = context; _music = music; }