mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-15 07:43:20 +08:00
22 lines
538 B
C#
22 lines
538 B
C#
using System;
|
|
|
|
namespace BetterGenshinImpact.Model;
|
|
|
|
public enum HotKeyTypeEnum
|
|
{
|
|
GlobalRegister, // 全局热键
|
|
KeyboardMonitor, // 键盘监听
|
|
}
|
|
|
|
public static class HotKeyTypeEnumExtension
|
|
{
|
|
public static string ToChineseName(this HotKeyTypeEnum type)
|
|
{
|
|
return type switch
|
|
{
|
|
HotKeyTypeEnum.GlobalRegister => "全局热键",
|
|
HotKeyTypeEnum.KeyboardMonitor => "键鼠监听",
|
|
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null),
|
|
};
|
|
}
|
|
} |