private XmlElement GetValue(VerbArgument arg) { var doc = new XmlDocument(); string text = webBrowser1.Document.GetElementById("arg" + arg.Position).GetAttribute("value"); switch (arg.Type.ToLowerInvariant()) { case "system.string": case "system.int64": case "system.int32": case "system.int16": case "system.byte": case "system.boolean": case "system.datetime": XmlElement elt = doc.CreateElement("arg"); elt.InnerText = text; return(elt); default: doc.InnerXml = text; return(doc.DocumentElement); } }
private static Documentation VerbArgumentDocumentation(VerbArgument verbArg) { var docs = MetadataDocumentation(verbArg); return(new Documentation("Verb argument", docs)); }
private static TreeNodeWithConnectionInfo CreateVerbArgumentNode(IMetadataProvider provider, VerbArgument argument) { string text = DocumentationBuilder.ToNodeText(argument); var argNode = CreateNode(provider, text, ImageKeys.Argument, argument); argNode.ToolTipText = DocumentationBuilder.ToToolTip(argument); return(argNode); }