2025-11-16 00:23:23 +01:00
|
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
|
using Wino.Core.ViewModels.Data;
|
2025-10-29 16:26:46 +01:00
|
|
|
using Wino.Mail.WinUI.Views.Abstract;
|
|
|
|
|
|
|
|
|
|
namespace Wino.Views.Settings;
|
|
|
|
|
|
|
|
|
|
public sealed partial class KeyboardShortcutsPage : KeyboardShortcutsPageAbstract
|
|
|
|
|
{
|
|
|
|
|
public KeyboardShortcutsPage()
|
|
|
|
|
{
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
}
|
2025-11-16 00:23:23 +01:00
|
|
|
|
|
|
|
|
private void EditShortcut_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (sender is Button button && button.CommandParameter is KeyboardShortcutViewModel shortcut)
|
|
|
|
|
{
|
|
|
|
|
ViewModel.StartEditingShortcutCommand.Execute(shortcut);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void DeleteShortcut_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (sender is Button button && button.CommandParameter is KeyboardShortcutViewModel shortcut)
|
|
|
|
|
{
|
|
|
|
|
ViewModel.DeleteShortcutCommand.Execute(shortcut);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-10-29 16:26:46 +01:00
|
|
|
}
|