private void btnRemove_Click(object sender, RoutedEventArgs e)
 {
     while (lstDlQueue.SelectedItems.Count > 0)
     {
         DownloadTask dl = lstDlQueue.SelectedItems[0] as DownloadTask;
         dl.Cancel();
         DlQueue.Remove(dl);
     }
 }
 private void Cancel(object sender, RoutedEventArgs e)
 {
     _downloadTask.Cancel();
 }
Exemple #3
0
 public void OnClick(IDialogInterface dialog, int which)
 {
     dialog.Cancel();
     task.IsCancel = true;
     task.Cancel(true);
 }