Ejemplo n.º 1
0
 public Boolean createNewNode(ref TreeNode NewNode, String NodeText, NavObjectStruct myStruct)
 {
     NewNode     = null;
     NewNode     = new TreeNode(NodeText);
     NewNode.Tag = myStruct;
     return(true);
 }
Ejemplo n.º 2
0
 public void addDataToStruct(ref NavObjectStruct myStruct, string objectType, int objectID, string objectDescription, string objectFileName, int startline, int endLine)
 {
     myStruct.endLine           = endLine;
     myStruct.objectDescription = objectDescription;
     myStruct.objectFileName    = objectFileName;
     myStruct.objectID          = objectID;
     myStruct.objectType        = objectType;
     myStruct.startline         = startline;
 }
Ejemplo n.º 3
0
        public void createRootNodesArr(TreeNode[] RootNode, ref NavObjectStruct myData)
        {
            foreach (ObjTypes MyObjType in Enum.GetValues(typeof(ObjTypes)))
            {
                addDataToStruct(ref myData, MyObjType.ToString(), 0, "", "", 0, 0);
                createNewNode(ref RootNode[(int)MyObjType], MyObjType.ToString(), myData);
            }

            //ParentNode.Nodes.Add(ChildNode);
            //return (true);
        }
Ejemplo n.º 4
0
 public Boolean addNewTreeNode(ref TreeNode ParentNode, ref TreeNode ChildNode, String ChildNodeText, NavObjectStruct myStruct)
 {
     ChildNode     = null;
     ChildNode     = new TreeNode(string.Format("{0} - {1}", myStruct.objectID.ToString(), myStruct.objectDescription));
     ChildNode.Tag = myStruct;
     ParentNode.Nodes.Add(ChildNode);
     return(true);
 }