public TreeNode PopulateTreeNode() { TreeNode Parent = new TreeNode(); Parent.Text = PartName; Parent.Name = PartName; Parent.Tag = this; foreach (IType AIPoint in AIPoints) { Parent.Nodes.Add(AIPoint.PopulateTreeNode()); } return(Parent); }
public override TreeNode PopulateTreeNode() { base.PopulateTreeNode(); TreeNode ThisNode = new TreeNode(); ThisNode.Text = "Type1 Group"; ThisNode.Name = RefID.ToString(); ThisNode.Tag = this; foreach (IType AIPoint in AIPoints) { ThisNode.Nodes.Add(AIPoint.PopulateTreeNode()); } return(ThisNode); }