private async Task SetupUi()
        {
            var task = _itunesService.GetMusicVideosAsync(25, _genre);

            this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse);
            this.Title = _localizeLookupService.GetLocalizedString("TopMusicVideos");

            _musicVideo = await task;
        }
Exemple #2
0
        private async Task SetupUi()
        {
            var task = _itunesService.GetMusicVideosAsync(25, _genre);

            this.TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CellReuse);
            this.Title = _localizeLookupService.GetLocalizedString("TopMusicVideos");

            _musicVideo = await task;
        }
Exemple #3
0
        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();
        }
Exemple #4
0
 public MusicAdapter(Activity context, Lib.Model.iTunes.MusicVideos.MusicVideo music)
 {
     _context = context;
     _music   = music;
 }