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);
			}
		}
예제 #2
0
        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);
            }
        }