Esempio n. 1
0
 protected virtual void OnDownloadStopped(DownloadEventArgs args)
 {
     if (this.DownloadStopped != null)
     {
         this.DownloadStopped(args);
     }
 }
Esempio 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();
     }
 }
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                var resumingDownload = (ResumingDownload)args.Download;
                this.downloads.Remove(resumingDownload);
            }

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

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