Exemplo n.º 1
0
 protected virtual void OnDownloadStopped(DownloadEventArgs args)
 {
     if (this.DownloadStopped != null)
     {
         this.DownloadStopped(args);
     }
 }
Exemplo n.º 2
0
 private void OnDownloadCompleted(DownloadEventArgs args)
 {
     lock (this.monitor)
     {
         this.alreadyDownloadedSizes[args.Download] = this.downloadSizes[args.Download];
     }
 }
 private void downloadStopped(DownloadEventArgs args)
 {
     lock (this.monitor)
     {
         this.CloseFile();
     }
 }
Exemplo n.º 4
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                var resumingDownload = (ResumingDownload)args.Download;
                this.downloads.Remove(resumingDownload);
            }

            this.StartDownloadOfNextRange();
        }
Exemplo n.º 5
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                this.CloseDownload();
                this.state    = DownloadState.Finished;
                this.stopping = true;
            }

            this.OnDownloadCompleted(new DownloadEventArgs(this));
        }
Exemplo n.º 6
0
 static void downloader_ProgressChanged(object sender, DownloadEventArgs e)
 {
     Console.WriteLine("Progress " + e.PercentDone);
 }
Exemplo n.º 7
0
 static void downloade_ProgressChanged(object sender, DownloadEventArgs e)
 {
     Console.WriteLine("Progress " + e.PercentDone);
 }