2025-12-31 14:09:57 +01:00
|
|
|
using Microsoft.UI.Xaml;
|
|
|
|
|
using Microsoft.UI.Xaml.Controls;
|
2025-11-16 00:23:23 +01:00
|
|
|
using Wino.Core.Domain.Enums;
|
2025-11-15 14:52:01 +01:00
|
|
|
using Wino.Views.Abstract;
|
|
|
|
|
|
|
|
|
|
namespace Wino.Views.Settings;
|
|
|
|
|
|
|
|
|
|
public sealed partial class SettingOptionsPage : SettingOptionsPageAbstract
|
|
|
|
|
{
|
|
|
|
|
public SettingOptionsPage()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2025-11-16 00:23:23 +01:00
|
|
|
|
2025-12-31 14:09:57 +01:00
|
|
|
private void SettingOptionClicked(object sender, RoutedEventArgs e)
|
2025-11-16 00:23:23 +01:00
|
|
|
{
|
2025-12-31 14:09:57 +01:00
|
|
|
WinoPage? page = sender switch
|
|
|
|
|
{
|
|
|
|
|
Button button when button.Tag is WinoPage p => p,
|
|
|
|
|
_ => null
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (page.HasValue)
|
|
|
|
|
{
|
|
|
|
|
ViewModel.NavigateSubDetailCommand.Execute(page.Value);
|
|
|
|
|
}
|
2025-11-16 00:23:23 +01:00
|
|
|
}
|
2025-11-15 14:52:01 +01:00
|
|
|
}
|