Esempio n. 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;
 }
Esempio n. 2
0
 public Workflow(EHotkey hotkey, HotkeySetting hotkeyConfig)
     : this(hotkey.GetDescription(), hotkeyConfig, true)
 {
     this.Hotkey = hotkey;
 }
Esempio n. 3
0
 public HotkeyStatus UpdateHotkey(HotkeySetting setting)
 {
     setting.UpdateMenuItemShortcut();
     setting.HotkeyStatus = hotkeyForm.ChangeHotkey(setting.Tag, setting.Hotkey, setting.Action);
     return setting.HotkeyStatus;
 }