Example #1
0
 private void OnExtensionWebViewLoadFailed(object sender, LoadFailedEventArgs e)
 {
     if (e.ErrorCode == ErrorCode.ProceedAsDownload)
     {
         return;
     }
     _siteContainer.ResumePages();
     FormDownloadProgress.CloseProgress();
 }
 private void OnWebViewDownloadCompleted(object sender, DownloadEventArgs e)
 {
     _siteContainer.ResumePages();
     FormDownloadProgress.CloseProgress();
     if (".MP4".Equals(Path.GetExtension(e.Item.FullPath), StringComparison.OrdinalIgnoreCase))
     {
         if (HandleVideoDownloaded(e.Item.FullPath))
         {
             return;
         }
     }
     using (var formComplete = new FormFileDownloadComplete(e.Item.FullPath))
     {
         formComplete.ShowDialog(_siteContainer.ParentBundle.MainForm);
     }
 }
 private void OnWebViewDownloadCanceled(object sender, DownloadEventArgs e)
 {
     _siteContainer.ResumePages();
     FormDownloadProgress.CloseProgress();
 }
Example #4
0
 private void OnExtensionsWebViewDownloadCompleted(Object sender, DownloadEventArgs e)
 {
     _siteContainer.ResumePages();
     FormDownloadProgress.CloseProgress();
 }