void ICefWebBrowserInternal.OnDownloadUpdated(DownloadUpdatedEventArgs e)
 {
     if (DownloadUpdated != null)
     {
         var di = e.DownloadedItem;
         var ea = new DownloadProgressEventArgs(di.Url, di.IsValid, di.IsInProgress, di.IsComplete, di.IsCanceled,
                                                di.CurrentSpeed, di.PercentComplete, di.TotalBytes, di.ReceivedBytes,
                                                di.FullPath, di.Id, di.SuggestedFileName, di.ContentDisposition, di.MimeType);
         InvokeHandler(DownloadUpdated, ea);
         if (ea.Cancel)
         {
             e.Callback.Cancel();
         }
     }
 }
Beispiel #2
0
        private void OnDownloadUpdated(DownloadUpdatedEventArgs e, DownloadItem dlItem)
        {
            DownloadTask dlTask = TryGetDlTask(dlItem);

            dlTask.Update(dlItem, e.callback);
        }