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