Exemplo n.º 1
0
 private void downloadRes()
 {
     try
     {
         ListViewItem item = this.lvResult.SelectedItems[0];
         MovieInfo    info = new MovieInfo();
         info.Link  = item.SubItems[2].Text.ToString();
         info.Title = item.SubItems[1].Text.ToString();
         Function.AddTaskToThunder(info);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.GetType() + ex.Message);
         MessageBox.Show("添加任务到迅雷失败,请重试");
         return;
     }
 }