public override string Call(CustomUploaderSyntaxParser parser, string[] parameters) { string[] values = parameters.Where(x => !string.IsNullOrEmpty(x)).ToArray(); if (values.Length > 0) { using (ParserSelectForm form = new ParserSelectForm(values)) { form.ShowDialog(); return(form.SelectedText); } } return(null); }
private string ParseSyntaxSelect(string syntax) { if (!string.IsNullOrEmpty(syntax)) { string[] values = syntax.Split(SyntaxParameterChar).Where(x => !string.IsNullOrEmpty(x)).ToArray(); if (values.Length > 0) { using (ParserSelectForm form = new ParserSelectForm(values)) { form.ShowDialog(); return(form.SelectedText); } } } return(null); }