Exemple #1
0
 /// <summary>
 /// Deletes the queue element at the given index
 /// </summary>
 /// <param name="index">The index of the element that will be deleted</param>
 public void Delete(int index)
 {
     if (elements[index].Equals(currentElement) && downloader != null)
     {
         downloader.Pause();
         currentElement = new QueueElement {
             Url = ""
         };
     }
     elements.RemoveAt(index);
     if (!queuePaused)
     {
         createNextDownload();
     }
 }
Exemple #2
0
 /// <summary>
 /// The queue process pauses
 /// </summary>
 public void Pause()
 {
     downloader.Pause();
     queuePaused = true;
 }