private async void GetMVDowning() { mvresult = await BackgroundDownload.GetList(BackgroundDownload.DownloadType.mv); if (mvresult != null) { MVDowningNum.Text = mvresult.transfers.Count.ToString(); MVFileNum.Text = mvresult.files.Count.ToString(); MVDowningList.ItemsSource = mvresult.transfers; LocalMVList.Items.Clear(); foreach (var file in mvresult.files) { LocalMVList.Items.Add(file); } } }
private async void GetSongDowning() { //await Task.Delay(3000); songresult = await BackgroundDownload.GetList(BackgroundDownload.DownloadType.song); if (songresult != null) { SongDowningNum.Text = songresult.transfers.Count.ToString(); SongFileNum.Text = songresult.files.Count.ToString(); SongDowningList.ItemsSource = songresult.transfers; LocalSongList.Items.Clear(); foreach (var file in songresult.files) { LocalSongList.Items.Add(file); } } }