コード例 #1
0
ファイル: NetworkUtils.cs プロジェクト: z0civic/filexile
 /// <summary>
 /// When an automated version check completes, only prompt the user for download. We don't want to
 /// annoy the user by always telling them they're using the latest version
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void AutomatedVersionCheckComplete(object sender, DownloadStringCompletedEventArgs e)
 {
     if (e.Error != null) return;
     if (Equals(e.Result, Assembly.GetExecutingAssembly().GetName().Version.ToString())) return;
     var dl = new DownloadDlg();
     dl.ShowDialog();
 }
コード例 #2
0
ファイル: NetworkUtils.cs プロジェクト: z0civic/filexile
 /// <summary>
 /// When a manual version check completes, either prompt the user for download or tell them they
 /// are using the latest version
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void ManualVersionCheckComplete(object sender, DownloadStringCompletedEventArgs e)
 {
     if (e.Error != null) return;
     if (Equals(e.Result, Assembly.GetExecutingAssembly().GetName().Version.ToString()))
         MessageBox.Show(Resources.LatestVersion);
     else
     {
         var dl = new DownloadDlg();
         dl.ShowDialog();
     }
 }