mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 18:05:40 +02:00
Fixed version displayed in title bar
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
// This class gathers all helper functions
|
// This class gathers all helper functions
|
||||||
using System;
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
internal class PerunHelper
|
internal class PerunHelper
|
||||||
{
|
{
|
||||||
@@ -21,6 +22,10 @@ internal class PerunHelper
|
|||||||
System.Deployment.Application.ApplicationDeployment cd = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
|
System.Deployment.Application.ApplicationDeployment cd = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
|
||||||
Globals.strPerunVersion = cd.CurrentVersion.ToString();
|
Globals.strPerunVersion = cd.CurrentVersion.ToString();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Globals.strPerunVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
|
}
|
||||||
return strBeginning+"v" + Globals.strPerunVersion;
|
return strBeginning+"v" + Globals.strPerunVersion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user