public void AddItem(TreeNode treeNode) { treeNode.SetLocation(0, _latestItemY); _latestItemY += treeNode.Height; treeNode.SetOwnerTreeView(this); _items.Add(this, treeNode); }
public void AddItem(TreeNode treeNode) { treeNode.SetLocation(0, latestItemY); latestItemY += treeNode.Height; treeNode.SetOwnerTreeView(this); panel.AddChild(treeNode); }