-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntity.cs
59 lines (47 loc) · 1.33 KB
/
Entity.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AIComposer.AISupport;
using HuExtend;
namespace AIComposer
{
public class SystemSetting
{
public HotkeySetting ShowHotkey { get; set; }
public HotkeySetting AskHotkey { get; set; }
public List<AISetting> AISettings { get; set; } = new List<AISetting>();
}
public enum KeyModifiers
{
None = 0,
Control = 0x0002,
Alt = 0x0001,
Shift = 0x0004,
Win = 0x0008
}
public class HotkeySetting
{
public KeyModifiers Modifiers { get; set; }
public Keys Key { get; set; }
public override string ToString()
{
var text = "";
if ((Modifiers & KeyModifiers.Control) != 0) text += "Ctrl + ";
if ((Modifiers & KeyModifiers.Alt) != 0) text += "Alt + ";
if ((Modifiers & KeyModifiers.Shift) != 0) text += "Shift + ";
if ((Modifiers & KeyModifiers.Win) != 0) text += "Win + ";
text += Key.ToString();
return text;
}
}
public class AISetting
{
public string Key { get; set; }
public string Proxy { get; set; }
public bool Enabled { get; set; }
}
}