public override void ExpandNamespace(NodeDocNamespace node) { TreeNode instanceMethods = new TreeNode("(Instance Methods)"); //things may or may not be added to this. resetReader(); expandNamespace_section(node.Nodes, instanceMethods, node.strSection, node.strNamespacename, mainReader); if (instanceMethods.Nodes.Count != 0) node.Nodes.Insert(0, instanceMethods); // add instance methods, if any were made }
public abstract void ExpandNamespace(NodeDocNamespace node);
protected void initialGetNamespaces(TreeNode outCurrentSection, XmlReader reader) { bool bContinue = reader.ReadToDescendant("namespace"); while (bContinue) { NodeDocNamespace currentNamespace = new NodeDocNamespace(reader.GetAttribute("name"), outCurrentSection.Text); bool bIsEmpty = (reader.GetAttribute("empty") != "true"); //Python might specify some to be empty currentNamespace.strDocumentation = initialGetNamespaceDoc(reader.ReadSubtree()); outCurrentSection.Nodes.Add(currentNamespace); if (bIsEmpty) currentNamespace.Nodes.Add(new TreeNode("")); // add dummy element, so can be expanded else if (currentNamespace.strDocumentation == "") currentNamespace.strDocumentation = NodocsIncluded; bContinue = ReadToNextSibling(reader, "namespace"); } reader.Close(); }
public override void ExpandNamespace(NodeDocNamespace node) { resetReader(); expandNamespace_section(node.Nodes, node.strSection, node.strNamespacename, mainReader); }