private void RebuildPrimaryTree(CAutoComplete ac) { //CAutoComplete ac = new CAutoComplete(); //ac.LoadAutoComplete(System.Windows.Forms.Application.StartupPath + "\\autocomplete.txt"); TreeNode public_ns = new TreeNode("Public Exports", 0, 0); foreach (CAutoComplete.ACEntry entry in ac.ReturnAll().Values) { for (int i = 0; i < entry.FormattedName.Count; i++) { TreeNode new_node = new TreeNode(entry.UnformattedName[i].ToString() + " (" + entry.UnformattedParameters[i].ToString() + ")", 1, 1); // [" + entry.UnformattedDescription[i].ToString() + "]" , 1, 1); new_node.Tag = entry; public_ns.Nodes.Add(new_node); } } foreach (CAutoComplete.ClassEntry cls in ac.ReturnAllClasses().Values) { TreeNode new_node = new TreeNode(cls.ClassName, 4, 4); new_node.Tag = cls; public_ns.Nodes.Add(new_node); } public_ns.Expand(); this._public_tree = public_ns; }
public void DisseminateLoadInformation(CAutoComplete ac) { g.LogDebug("CPROJECT::DisseminateLoadInformation: Enter"); this.RebuildPrimaryTree(ac); this.RebuildVisibleTree(); }
private void RebuildPrimaryTree(CAutoComplete ac) { //CAutoComplete ac = new CAutoComplete(); //ac.LoadAutoComplete(System.Windows.Forms.Application.StartupPath + "\\autocomplete.txt"); TreeNode public_ns = new TreeNode("Public Exports", 0, 0); foreach(CAutoComplete.ACEntry entry in ac.ReturnAll().Values) { for (int i = 0; i < entry.FormattedName.Count; i++) { TreeNode new_node = new TreeNode(entry.UnformattedName[i].ToString() + " (" + entry.UnformattedParameters[i].ToString() + ")", 1, 1); // [" + entry.UnformattedDescription[i].ToString() + "]" , 1, 1); new_node.Tag = entry; public_ns.Nodes.Add(new_node); } } foreach(CAutoComplete.ClassEntry cls in ac.ReturnAllClasses().Values) { TreeNode new_node = new TreeNode(cls.ClassName, 4, 4); new_node.Tag = cls; public_ns.Nodes.Add(new_node); } public_ns.Expand(); this._public_tree = public_ns; }