private void downloadStarted(SDStartedEventArgs args) { lock (this.monitor) { this.OpenFileIfNecessary(); } }
protected virtual void OnDownloadStarted(SDStartedEventArgs args) { if (this.DownloadStarted != null) { this.DownloadStarted(args); } }
private void OnDownloadStarted(SDStartedEventArgs args) { lock (this.monitor) { this.downloadSizes[args.Download] = args.CheckResult.Size; this.alreadyDownloadedSizes[args.Download] = args.AlreadyDownloadedSize; } }
private void downloadStarted(SDStartedEventArgs 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 SDStartedEventArgs(this, args.CheckResult, args.AlreadyDownloadedSize)); } }
void DataStarted(SDStartedEventArgs args) { OnStarted?.Invoke(args); }
private void OnStart(SDStartedEventArgs args) { }