2026-06-28 11:12:26 +08:00
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
2026-06-28 12:40:10 +08:00
|
|
|
namespace BetterSeewoManager;
|
|
|
|
|
|
|
|
|
|
public partial class MainWindow : Window
|
2026-06-28 11:12:26 +08:00
|
|
|
{
|
2026-06-28 12:40:10 +08:00
|
|
|
public MainWindow()
|
2026-06-28 11:12:26 +08:00
|
|
|
{
|
2026-06-28 12:40:10 +08:00
|
|
|
InitializeComponent();
|
|
|
|
|
ContentFrame.Navigate(new System.Uri("Pages/InstallPage.xaml", System.UriKind.Relative));
|
|
|
|
|
}
|
2026-06-28 11:12:26 +08:00
|
|
|
|
2026-06-28 12:40:10 +08:00
|
|
|
private void Tab_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (sender is RadioButton rb && rb.Tag is string pageName)
|
2026-06-28 11:12:26 +08:00
|
|
|
{
|
2026-06-28 12:40:10 +08:00
|
|
|
var pageUri = new System.Uri($"Pages/{pageName}.xaml", System.UriKind.Relative);
|
|
|
|
|
ContentFrame.Navigate(pageUri);
|
2026-06-28 11:12:26 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|