コード例 #1
0
 protected virtual void OnDownloadStarted(DownloadStartedEventArgs args)
 {
     if (this.DownloadStarted != null)
     {
         this.DownloadStarted(args);
     }
 }
コード例 #2
0
 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
ファイル: DownloadService.cs プロジェクト: ywscr/Downloader
 private void OnDownloadStarted(DownloadStartedEventArgs e)
 {
     Package.IsSaving = true;
     DownloadStarted?.Invoke(this, e);
 }