Skip to content

Commit 01717ef

Browse files
committedMay 21, 2017
Show Version in window title
1 parent f35e43d commit 01717ef

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed
 

‎7thWorkshop/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ The original developer is Iros <irosff@outlook.com>
3737
// You can specify all the values or you can default the Build and Revision Numbers
3838
// by using the '*' as shown below:
3939
// [assembly: AssemblyVersion("1.0.*")]
40-
[assembly: AssemblyVersion("1.0.0.0")]
41-
[assembly: AssemblyFileVersion("1.0.0.0")]
40+
[assembly: AssemblyVersion("1.5.6.0")]
41+
[assembly: AssemblyFileVersion("1.5.6.0")]

‎7thWorkshop/fLibrary.Designer.cs

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

‎7thWorkshop/fLibrary.cs

+7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@ The original developer is Iros <irosff@outlook.com>
1313
using System.Windows.Forms;
1414
using System.Runtime.InteropServices;
1515
using System.Globalization;
16+
using System.Diagnostics;
1617
//using SharpCompress.Archive;
1718
//using SharpCompress.Reader;
1819

1920
namespace Iros._7th.Workshop {
2021
public partial class fLibrary : Form {
2122
public fLibrary() {
2223
InitializeComponent();
24+
25+
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
26+
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
27+
string version = fvi.FileVersion;
28+
29+
this.Text = String.Format("7thHeaven Version {0}", version);
2330
}
2431

2532
private string _catFile;

0 commit comments

Comments
 (0)