Пример #1
0
 public void PerformCheck()
 {
     try
     {
         var remoteInfo = RemoteVersionInfo.FetchUrl(versionInfoUrl);
         if (CompareVersionString(remoteInfo.Version, localVersion) > 0)
         {
             var msg = String.Format("Update available!\nLatest version: {0}\nCurrent version: {1}",
                                     remoteInfo.Version, localVersion);
             var result = MessageBox.Show(msg, "ACT Timeline Plugin", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
             if (result == DialogResult.Yes)
             {
                 Process.Start(remoteInfo.DownloadUrl);
             }
         }
     }
     catch (Exception e)
     {
         Globals.WriteLog(String.Format("Update check failed: {0}", e.Message));
     }
 }
Пример #2
0
 public void PerformCheck()
 {
     try
     {
         var remoteInfo = RemoteVersionInfo.FetchUrl(versionInfoUrl);
         if (CompareVersionString(remoteInfo.Version, localVersion) > 0)
         {
             var msg = String.Format("act_timelineの更新版が公開されています: {0}\nお手元のバージョン: {1}\n主な変更:\n{2}\nダウンロードサイトを開きますか?",
                                     remoteInfo.Version, localVersion, remoteInfo.ChangeSummaryJp);
             var result = MessageBox.Show(msg, "act_timeline", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
             if (result == DialogResult.Yes)
             {
                 Process.Start(remoteInfo.DownloadUrl);
             }
         }
     }
     catch (Exception e)
     {
         Globals.WriteLog(String.Format("Update check failed: {0}", e.Message));
     }
 }
 public void AreEqualToTestInfo(RemoteVersionInfo info)
 {
     Assert.AreEqual("0.1.1.0", info.Version);
     Assert.AreEqual("ほげふが改善", info.ChangeSummaryJp);
     Assert.AreEqual("https://github.com/grindingcoil/act_timeline", info.DownloadUrl);
 }