Пример #1
0
 protected virtual void OnDownloadStarted(DownloadStartedEventArgs args)
 {
     if (this.DownloadStarted != null)
     {
         this.DownloadStarted(args);
     }
 }
 private void downloadStarted(DownloadStartedEventArgs args)
 {
     lock (this.monitor)
     {
         this.OpenFileIfNecessary();
     }
 }
Пример #3
0
 private void OnDownloadStarted(DownloadStartedEventArgs args)
 {
     lock (this.monitor)
     {
         this.downloadSizes[args.Download]          = args.CheckResult.Size;
         this.alreadyDownloadedSizes[args.Download] = args.AlreadyDownloadedSize;
     }
 }
Пример #4
0
        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));
            }
        }
Пример #5
0
 private void OnDownloadStarted(DownloadStartedEventArgs e)
 {
     DownloadStarted?.Invoke(this, e);
 }
Пример #6
0
 private void OnDownloadStarted(DownloadStartedEventArgs e)
 {
     Package.IsSaving = true;
     DownloadStarted?.Invoke(this, e);
 }