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); } }
public void SetCommandToDictionary(string commandVariable = "{Command}", IScriptCommand cmd = null) { string command = ParameterDic.GetVariable(commandVariable); _commandDictionary.SetCommand(commandVariable, cmd); }