Skip to content

Commit

Permalink
Show version number in title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Jan 6, 2019
1 parent 4218752 commit c73a03d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
using Arc.YTSubConverter.Ass;
Expand All @@ -19,6 +20,9 @@ public MainForm()
{
InitializeComponent();

Version version = Assembly.GetEntryAssembly().GetName().Version;
Text += $" {version.Major}.{version.Minor}.{version.Build}";

_styleOptions = AssStyleOptionsList.Load().ToDictionary(o => o.Name);
ExpandCollapseStyleOptions();
ClearUi();
Expand Down
9 changes: 4 additions & 5 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("SubTool")]
[assembly: AssemblyTitle("YTSubConverter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SubTool")]
[assembly: AssemblyProduct("YTSubConverter")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -32,5 +31,5 @@
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]

0 comments on commit c73a03d

Please sign in to comment.