protected virtual void OnDownloadStarted(DownloadStartedEventArgs args) { if (this.DownloadStarted != null) { this.DownloadStarted(args); } }
private void downloadStarted(DownloadStartedEventArgs args) { lock (this.monitor) { this.OpenFileIfNecessary(); } }
private void OnDownloadStarted(DownloadStartedEventArgs args) { lock (this.monitor) { this.downloadSizes[args.Download] = args.CheckResult.Size; this.alreadyDownloadedSizes[args.Download] = args.AlreadyDownloadedSize; } }
private void downloadStarted(DownloadStartedEventArgs args) { var download = args.Download; bool shouldNotifyDownloadStarted = false; lock (this.monitor) { if (download == this.currentDownload) { if (!this.downloadStartedNotified) { shouldNotifyDownloadStarted = true; this.downloadStartedNotified = true; } } } if (shouldNotifyDownloadStarted) { this.OnDownloadStarted(new DownloadStartedEventArgs(this, args.CheckResult, args.AlreadyDownloadedSize)); } }
private void OnDownloadStarted(DownloadStartedEventArgs e) { DownloadStarted?.Invoke(this, e); }
private void OnDownloadStarted(DownloadStartedEventArgs e) { Package.IsSaving = true; DownloadStarted?.Invoke(this, e); }