コード例 #1
0
 private void downloadCompleted(DownloadEventArgs args)
 {
     lock (this.monitor)
     {
         this.CloseFile();
     }
 }
コード例 #2
0
 protected virtual void OnDownloadStopped(DownloadEventArgs args)
 {
     if (this.DownloadStopped != null)
     {
         this.DownloadStopped(args);
     }
 }
コード例 #3
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                this.CloseDownload();
                this.state = DownloadState.Finished;
                this.stopping = true;
            }

            this.OnDownloadCompleted(new DownloadEventArgs(this));
        }
コード例 #4
0
        private void downloadCompleted(DownloadEventArgs args)
        {
            lock (this.monitor)
            {
                var resumingDownload = (ResumingDownload)args.Download;
                this.downloads.Remove(resumingDownload);
            }

            this.StartDownloadOfNextRange();
        }