From 552955ef67540cdb686c42eafc8e0555bc4e444b Mon Sep 17 00:00:00 2001 From: Chev <11602755+chev2@users.noreply.github.com> Date: Sun, 30 May 2021 19:20:15 -0700 Subject: [PATCH] Dashboard readonly strings --- Dashboard.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dashboard.xaml.cs b/Dashboard.xaml.cs index 654bf53..f2e2e0d 100644 --- a/Dashboard.xaml.cs +++ b/Dashboard.xaml.cs @@ -11,9 +11,12 @@ namespace BOTWToolset /// public partial class Dashboard : Window { - public static string VERSION = System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion; + // Get the app version from the assembly info + public static readonly string VERSION = System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion; + + // Get the user's desktop path + public static readonly string UserDesktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); - public static string UserDesktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); // All tabs used in the toolset // Adding a new tool to the program requires its tab control to be added here public static readonly UserControl[] toolsetTabs = new UserControl[]