private bool CheckCLIHotkey(CLICommand command) { foreach (HotkeyType job in Helpers.GetEnums <HotkeyType>()) { if (command.CheckCommand(job.ToString())) { TaskHelpers.ExecuteJob(job, command); return(true); } } return(false); }
private bool CheckCLIWorkflow(CLICommand command) { if (Program.HotkeysConfig != null && command.CheckCommand("workflow") && !string.IsNullOrEmpty(command.Parameter)) { foreach (HotkeySettings hotkeySetting in Program.HotkeysConfig.Hotkeys) { if (hotkeySetting.TaskSettings.Job != HotkeyType.None) { if (command.Parameter == hotkeySetting.TaskSettings.ToString()) { TaskHelpers.ExecuteJob(hotkeySetting.TaskSettings); return(true); } } } } return(false); }