diff --git a/src/Hash.Wpf/App.xaml.cs b/src/Hash.Wpf/App.xaml.cs index 2d15c84..1416d80 100644 --- a/src/Hash.Wpf/App.xaml.cs +++ b/src/Hash.Wpf/App.xaml.cs @@ -37,6 +37,8 @@ public partial class App : Application public const string SemVer = $"v{Major}.{Minor}.{Build}"; + public static string NowYear => DateTime.Now.Year.ToString(); + /// /// Application Entry Point. /// diff --git a/src/Hash.Wpf/MainWindow.xaml b/src/Hash.Wpf/MainWindow.xaml index 71dd7d7..451a9d4 100644 --- a/src/Hash.Wpf/MainWindow.xaml +++ b/src/Hash.Wpf/MainWindow.xaml @@ -212,7 +212,7 @@ diff --git a/src/Hash.Wpf/MainWindow.xaml.cs b/src/Hash.Wpf/MainWindow.xaml.cs index b64a635..8411a16 100644 --- a/src/Hash.Wpf/MainWindow.xaml.cs +++ b/src/Hash.Wpf/MainWindow.xaml.cs @@ -85,7 +85,6 @@ private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) HashForContextEnable.IsChecked = false; } - CopyRight.Text = $"Copyright © 2021-{DateTime.Now.Year} Hibi_10000"; foreach (string hashTypeName in HashCalculate.GetHashTypeNames()) { HashSelector.Items.Add(new ComboBoxItem { Content = hashTypeName }); diff --git a/src/Hash.Wpf/Strings/ParentResource.xaml b/src/Hash.Wpf/Strings/ParentResource.xaml index 522bc1f..f0ac91c 100644 --- a/src/Hash.Wpf/Strings/ParentResource.xaml +++ b/src/Hash.Wpf/Strings/ParentResource.xaml @@ -24,8 +24,14 @@ xmlns:local="clr-namespace:Hash.Wpf"> HashCalculator - + {0} {1} + + + Copyright © 2021-{0} Hibi_10000 + + +