-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBossKeySetting.cs
More file actions
41 lines (37 loc) · 1.03 KB
/
BossKeySetting.cs
File metadata and controls
41 lines (37 loc) · 1.03 KB
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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Wbooru.Settings;
using Wbooru.Settings.UIAttributes;
using WbooruPlugin.BossKey.UI;
namespace WbooruPlugin.BossKey
{
[Export(typeof(SettingBase))]
public class BossKeySetting:SettingBase , INotifyPropertyChanged
{
private string[] hot_keys = new string[] { "LeftAlt", "LeftCtrl", "Q" };
[Ignore]
[JsonProperty]
public string[] HotKeys
{
get => hot_keys;
set
{
hot_keys = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(HotKeys)));
}
}
public event PropertyChangedEventHandler PropertyChanged;
[CustomUI]
public UIElement CreateHotKeyInputUI()
{
return new ConfigBossKeyEnterControl();
}
}
}