protected void Populate(uint tree_depth, uint tree_width) { if (tree_depth == 0) return; for (uint i = 0; i < tree_width; i++) { TreeContainerSupport child = new TreeContainerSupport(tree_depth - 1, tree_width); children.Add(child); AddChild(child); } }
protected void Populate(uint tree_depth, uint tree_width) { if (tree_depth == 0) { return; } for (uint i = 0; i < tree_width; i++) { TreeContainerSupport child = new TreeContainerSupport(tree_depth - 1, tree_width); children.Add(child); AddChild(child); } }