using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Fischless.HotkeyCapture;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Windows.Forms;
using System.Windows.Input;
namespace BetterGenshinImpact.Model;
///
/// 在页面展示快捷键配置的对象
///
public partial class HotKeySettingModel : ObservableObject
{
[ObservableProperty] private HotKey _hotKey;
///
/// 键鼠监听、全局热键
///
[ObservableProperty] private HotKeyTypeEnum _hotKeyType;
[ObservableProperty] private string _hotKeyTypeName;
[ObservableProperty]
private ObservableCollection _children = [];
public string FunctionName { get; set; }
public bool IsExpanded => true;
///
/// 界面上显示是文件夹而不是快捷键
///
[ObservableProperty]
private bool _isDirectory;
public string ConfigPropertyName { get; set; }
public Action