Ejemplo n.º 1
0
 public void TaskDownload(TaskViewModel from)
 {
     if (DownloadList.Contains(from) == false)
     {
         if (ErrorList.Contains(from))
         {
             ErrorList.Remove(from);
         }
         if (CompleteList.Contains(from))
         {
             CompleteList.Remove(from);
         }
         DownloadList.Insert(0, from);
     }
 }
Ejemplo n.º 2
0
 public void DeleteTask(TaskViewModel from)
 {
     if (DownloadList.Contains(from))
     {
         DownloadList.Remove(from);
     }
     if (CompleteList.Contains(from))
     {
         CompleteList.Remove(from);
     }
     if (ErrorList.Contains(from))
     {
         ErrorList.Remove(from);
     }
 }