コード例 #1
0
        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);
            }
        }
コード例 #2
0
 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,
         });
     }
 }
コード例 #3
0
 void btn_cancel_Click(object sender, RoutedEventArgs e)
 {
     DownloadManager.Instance.StopByTag(SelectedSongs.Select(x => x.Id).ToArray());
 }