void btn_remove_Click(object sender, RoutedEventArgs e) { DownloadManager.Instance.RemoveByTag(SelectedSongs.Select(x => x.Id).ToArray()); var list = SelectedSongs.ToList(); foreach (var item in list) { Remove(item); } }
void btn_complete_Click(object sender, RoutedEventArgs e) { if (!SelectedSongs.Any()) { return; } DownloadManager.Instance.StopByTag(SelectedSongs.Select(x => x.Id).ToArray()); foreach (var item in SelectedSongs) { item.HasMp3 = true; item.HasLrc = true; item.HasArt = true; MessageBus.Instance.Publish(new MsgDownloadStateChanged { Id = item.Id, Item = item, }); } }
void btn_cancel_Click(object sender, RoutedEventArgs e) { DownloadManager.Instance.StopByTag(SelectedSongs.Select(x => x.Id).ToArray()); }