Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }