Showing version build in title if it is bigger than 0

This commit is contained in:
Jaex 2013-11-28 08:12:43 +02:00
parent e0e3f8db7a
commit 427873caa0
3 changed files with 6 additions and 15 deletions

View file

@ -40,8 +40,8 @@ public AboutForm()
{
InitializeComponent();
Icon = ShareXResources.Icon;
Text = Program.FullTitle;
lblProductName.Text = Program.FullTitle;
Text = Program.Title;
lblProductName.Text = Program.Title;
uclUpdate.CheckUpdate(TaskHelpers.CheckUpdate);

View file

@ -46,16 +46,7 @@ public static string Title
get
{
string title = string.Format("{0} {1}.{2}", ApplicationName, AssemblyVersion.Major, AssemblyVersion.Minor);
if (IsPortable) title += " Portable";
return title;
}
}
public static string FullTitle
{
get
{
string title = string.Format("{0} {1}.{2}.{3}", ApplicationName, AssemblyVersion.Major, AssemblyVersion.Minor, AssemblyVersion.Build);
if (AssemblyVersion.Build > 0) title += "." + AssemblyVersion.Build;
if (IsPortable) title += " Portable";
return title;
}
@ -286,7 +277,7 @@ private static void Run(string[] args)
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DebugHelper.WriteLine("{0} started", FullTitle);
DebugHelper.WriteLine("{0} started", Title);
DebugHelper.WriteLine("Operating system: " + Environment.OSVersion.VersionString);
DebugHelper.WriteLine("Command line: " + Environment.CommandLine);
DebugHelper.WriteLine("Personal path: " + PersonalPath);

View file

@ -11,5 +11,5 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC")]
[assembly: AssemblyVersion("8.4.0")]
[assembly: AssemblyFileVersion("8.4.0")]
[assembly: AssemblyVersion("8.4.1")]
[assembly: AssemblyFileVersion("8.4.1")]