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