private void AddInput(dynamic value) { ConfigurationInput input = new ConfigurationInput(); input.Initialize(GetArgs((string)value.type, (string)(value.alias ?? string.Empty), value.args)); Inputs.Add(input); }
private IInput GetInputFromScript() { List<string> fullArgs = new List<string> { txtType.Text, txtAlias.Text }; string[] args = txtArgs.Text.SplitCsv(); if (args != null) { fullArgs.AddRange(args); } ConfigurationInput input = new ConfigurationInput(); input.Initialize(fullArgs.ToArray()); return input; }