コード例 #1
0
        public IScriptCommand GetCommandFromDictionary(string commandVariable      = "{Command}",
                                                       IScriptCommand defaultValue = null)
        {
            string command = ParameterDic.GetVariable(commandVariable);

            if (_commandDictionary.Dictionary.ContainsKey(command))
            {
                return(_commandDictionary[command]);
            }
            else
            {
                return(defaultValue);
            }
        }
コード例 #2
0
        public void SetCommandToDictionary(string commandVariable = "{Command}", IScriptCommand cmd = null)
        {
            string command = ParameterDic.GetVariable(commandVariable);

            _commandDictionary.SetCommand(commandVariable, cmd);
        }