botw-toolset/Dashboard.xaml.cs
Chev a1a83285f8 Migrate from .NET Framework 4.8 to .NET 5
Also compress Resources/Icons image files, and remove unused entry in App.xaml
2021-01-18 23:33:46 -08:00

34 lines
1.2 KiB
C#

using BOTWToolset.Debugging;
using System;
using System.Reflection;
using System.Windows;
namespace BOTWToolset
{
/// <summary>
/// Interaction logic for Dashboard.xaml
/// </summary>
public partial class Dashboard : Window
{
public static string VERSION = System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion;
public static string UserDesktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
public Dashboard()
{
InitializeComponent();
BOTWConsole.Log($"Breath of the Wild Toolkit - Version {VERSION}");
LabelVersion.Content = $"Version v{VERSION}";
}
private void TabSelect_TSCB(object sender, System.Windows.Input.MouseButtonEventArgs e) => tabItemTSCB.IsSelected = true;
private void TabSelect_Yaz0(object sender, System.Windows.Input.MouseButtonEventArgs e) => tabItemYaz0.IsSelected = true;
private void TabSelect_SARC(object sender, System.Windows.Input.MouseButtonEventArgs e) => tabItemSARC.IsSelected = true;
private void TabSelect_RSTB(object sender, System.Windows.Input.MouseButtonEventArgs e) => tabItemRSTB.IsSelected = true;
}
}