Version # is not displayed on the 'About' tab

This commit is contained in:
Anton Kasyanov
2017-05-28 23:19:46 +03:00
parent c6ae2bde9f
commit 7ee69bd3ad
5 changed files with 34 additions and 180 deletions

View File

@@ -54,6 +54,7 @@ namespace EveOPreview.UI
{
this.LoadApplicationSettings();
this.View.SetForumUrl(MainPresenter.ForumUrl);
this.View.SetVersionInfo(this.GetApplicationVersion());
if (this._configuration.MinimizeToTray)
{
this.View.Minimize();
@@ -222,6 +223,12 @@ namespace EveOPreview.UI
Process.Start(processStartInfo);
}
private string GetApplicationVersion()
{
Version version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version;
return String.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Revision);
}
private void ExitApplication()
{
this._exitApplication = true;