예제 #1
0
 public Workflow(string description, HotkeySetting hotkeyConfig, bool bProtected)
 {
     this.HotkeyConfig = hotkeyConfig;
     this.HotkeyConfig.SystemHotkey = bProtected;
     this.HotkeyConfig.Tag = Helpers.GetRandomAlphanumeric(12);
     this.HotkeyConfig.Description = description;
 }
예제 #2
0
 public Workflow(EHotkey hotkey, HotkeySetting hotkeyConfig)
     : this(hotkey.GetDescription(), hotkeyConfig, true)
 {
     this.Hotkey = hotkey;
 }
예제 #3
0
 public HotkeyStatus UpdateHotkey(HotkeySetting setting)
 {
     setting.UpdateMenuItemShortcut();
     setting.HotkeyStatus = hotkeyForm.ChangeHotkey(setting.Tag, setting.Hotkey, setting.Action);
     return setting.HotkeyStatus;
 }