Skip to content

Commit 79f47a9

Browse files
committed
Added version info.
1 parent 7a0bffa commit 79f47a9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ChannelRepacker/App.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Configuration;
55
using System.Data;
66
using System.Linq;
7+
using System.Reflection;
78
using System.Threading.Tasks;
89
using System.Windows;
910

@@ -14,6 +15,8 @@ namespace NullSoftware
1415
/// </summary>
1516
public partial class App : Application
1617
{
18+
public Version ApplicationVersion { get; } = Assembly.GetExecutingAssembly().GetName().Version;
19+
1720
private void Application_Startup(object sender, StartupEventArgs e)
1821
{
1922
NNViewRegistrar.RegisterSplat();

ChannelRepacker/MainWindow.xaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
</Hyperlink>
6969
</TextBlock>
7070
</StatusBarItem>
71+
<Separator/>
72+
<StatusBarItem>
73+
<TextBlock>
74+
<Run Text="Version:"/>
75+
<Run Text="{Binding Source={x:Static Application.Current}, Path=ApplicationVersion, Mode=OneTime}"/>
76+
</TextBlock>
77+
</StatusBarItem>
7178
</StatusBar>
7279

7380
<Grid Grid.Row="1">

0 commit comments

Comments
 (0)