public ITikCommandParameter AddParameter(string name, string value, TikCommandParameterFormat parameterFormat) { ITikCommandParameter result = AddParameter(name, value); result.ParameterFormat = parameterFormat; return(result); }
/// <summary> /// Adds new instance of parameter with .proplist to <see cref="Parameters"/> list. /// </summary> /// <param name="proplist">Names of the wanted properties</param> /// <returns>Instance of added parameter.</returns> public static ITikCommandParameter AddProplistParameter(this ITikCommand command, params string[] proplist) { ITikCommandParameter result = command.AddParameter(TikSpecialProperties.Proplist, string.Join(",", proplist), TikCommandParameterFormat.NameValue); return(result); }
private TikCommandParameterFormat ResolveParameterFormat(TikCommandParameterFormat usecaseDefaultFormat, TikCommandParameterFormat commandDefaultFormat, ITikCommandParameter parameter) { if (parameter.ParameterFormat != TikCommandParameterFormat.Default) { return(parameter.ParameterFormat); } else if (parameter.Name == TikSpecialProperties.Tag) { return(TikCommandParameterFormat.Tag); //.tag=1231 } else if (commandDefaultFormat != TikCommandParameterFormat.Default) { return(commandDefaultFormat); } else if (usecaseDefaultFormat != TikCommandParameterFormat.Default) { return(usecaseDefaultFormat); } else { return(TikCommandParameterFormat.NameValue); } }