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