Beispiel #1
0
 private void downloadStarted(SDStartedEventArgs args)
 {
     lock (this.monitor)
     {
         this.OpenFileIfNecessary();
     }
 }
 protected virtual void OnDownloadStarted(SDStartedEventArgs args)
 {
     if (this.DownloadStarted != null)
     {
         this.DownloadStarted(args);
     }
 }
Beispiel #3
0
 private void OnDownloadStarted(SDStartedEventArgs args)
 {
     lock (this.monitor)
     {
         this.downloadSizes[args.Download]          = args.CheckResult.Size;
         this.alreadyDownloadedSizes[args.Download] = args.AlreadyDownloadedSize;
     }
 }
Beispiel #4
0
        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);
 }
Beispiel #6
0
 private void OnStart(SDStartedEventArgs args)
 {
 }