Skip to content

Commit 1a95373

Browse files
committed
display version
1 parent d03fbae commit 1a95373

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Diff for: ibf-unpack/MainForm.Designer.cs

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ibf-unpack/MainForm.cs

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Diagnostics;
33
using System.IO;
4+
using System.Reflection;
45
using System.Windows.Forms;
56

67
namespace ibf_unpack
@@ -13,6 +14,13 @@ public MainForm()
1314
InitializeComponent();
1415
}
1516

17+
private void MainForm_Load(object sender, EventArgs e)
18+
{
19+
Assembly assembly = Assembly.GetExecutingAssembly();
20+
string version = FileVersionInfo.GetVersionInfo(assembly.Location).FileVersion;
21+
Text += $" v{version}";
22+
}
23+
1624
private void pathBtn_Click(object sender, EventArgs e)
1725
{
1826
OpenFileDialog dialog = new OpenFileDialog();
@@ -52,5 +60,6 @@ private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
5260
{
5361
Process.Start("https://github.com/ucorpor/ibf-unpack");
5462
}
63+
5564
}
5665
}

Diff for: ibf-unpack/Properties/AssemblyInfo.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("ibf-converter")]
8+
[assembly: AssemblyTitle("ibf-unpack")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("ibf-converter")]
12+
[assembly: AssemblyProduct("ibf-unpack")]
1313
[assembly: AssemblyCopyright("Copyright © 2023")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.1.0.0")]
36+
[assembly: AssemblyFileVersion("1.1.0.0")]

0 commit comments

Comments
 (0)