Skip to content

Commit

Permalink
タイトルバーにバージョン表記
Browse files Browse the repository at this point in the history
  • Loading branch information
yutokun committed Oct 24, 2020
1 parent ec6776f commit 71e8620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions APKInstaller/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:APKInstaller"
mc:Ignorable="d"
Name="Window"
AllowDrop="True"
Title="APK Installer" Height="350" Width="525">
<Grid>
Expand Down
6 changes: 4 additions & 2 deletions APKInstaller/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using System.Windows.Threading;

Expand All @@ -15,6 +17,8 @@ public MainWindow()
{
InitializeComponent();
Installer.Initialize();
var ver = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
Window.Title += $" - v{ver.ProductVersion}";
}

protected override void OnInitialized(EventArgs e)
Expand Down Expand Up @@ -44,8 +48,6 @@ void MainWindow_OnPreviewDragOver(object sender, DragEventArgs e)
e.Effects = isPresent ? DragDropEffects.Copy : DragDropEffects.None;
e.Handled = true;
}



public void AddMessage(string message)
{
Expand Down
2 changes: 1 addition & 1 deletion APKInstaller/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.1.1")]

0 comments on commit 71e8620

Please sign in to comment.