Beispiel #1
0
 private void OnMSysGitDownloaderCreated(IAsyncResult ar)
 {
     try
     {
         _downloader = MSysGitDownloader.EndCreate(ar);
     }
     catch (Exception exc)
     {
         if (exc.IsCritical())
         {
             throw;
         }
         _downloader = null;
     }
     if (!Disposing && !IsDisposed)
     {
         try
         {
             BeginInvoke(new MethodInvoker(UpdateLatestVersion));
         }
         catch (Exception exc)
         {
             if (exc.IsCritical())
             {
                 throw;
             }
         }
     }
 }
Beispiel #2
0
 private void RefreshLatestVersion()
 {
     _lnkRefreshLatestVersion.Visible = false;
     _lnkDownload.Visible             = false;
     _lblLatestVersionValue.Text      = Resources.StrsSearching.AddEllipsis();
     MSysGitDownloader.BeginCreate(OnMSysGitDownloaderCreated);
 }
Beispiel #3
0
 private void OnMSysGitDownloaderCreated(IAsyncResult ar)
 {
     try
     {
         _downloader = MSysGitDownloader.EndCreate(ar);
     }
     catch(Exception exc)
     {
         if(exc.IsCritical())
         {
             throw;
         }
         _downloader = null;
     }
     if(!Disposing && !IsDisposed)
     {
         try
         {
             BeginInvoke(new MethodInvoker(UpdateLatestVersion));
         }
         catch(Exception exc)
         {
             if(exc.IsCritical())
             {
                 throw;
             }
         }
     }
 }