protected virtual void OnDownloadStopped(DownloadEventArgs args) { if (this.DownloadStopped != null) { this.DownloadStopped(args); } }
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)); }
static void downloader_ProgressChanged(object sender, DownloadEventArgs e) { Console.WriteLine("Progress " + e.PercentDone); }
static void downloade_ProgressChanged(object sender, DownloadEventArgs e) { Console.WriteLine("Progress " + e.PercentDone); }