Ejemplo n.º 1
0
 public void CancelDownload(QueuedDownload download)
 {
     DownloadManager.StopDownload(download).Subscribe(
         dl =>
     {
         using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
         {
             string path = Utils.MediaFilePath(LoggedUser, dl);
             if (isf.FileExists(path))
             {
                 isf.DeleteFile(path);
             }
         }
     });
     LoggedUser.Downloads.Remove(download);
     App.Engine.StatisticsManager.LogDownloadRemove(download);
 }
Ejemplo n.º 2
0
 public void StopDownload(QueuedDownload download)
 {
     DownloadManager.StopDownload(download);
 }