public void Initialize() { var top = new MaxDepthSource(1); top.AddChild(new MaxDepthSource(2)); top.Children[0].AddChild(new MaxDepthSource(3)); top.Children[0].AddChild(new MaxDepthSource(3)); top.Children[0].Children[1].AddChild(new MaxDepthSource(4)); top.Children[0].Children[1].AddChild(new MaxDepthSource(4)); top.Children[0].Children[1].AddChild(new MaxDepthSource(4)); top.Children[0].Children[1].AddChild(new MaxDepthSource(4)); top.AddChild(new MaxDepthSource(2)); top.Children[1].AddChild(new MaxDepthSource(3)); top.AddChild(new MaxDepthSource(2)); top.Children[2].AddChild(new MaxDepthSource(3)); top.AddChild(new MaxDepthSource(2)); top.Children[3].AddChild(new MaxDepthSource(3)); _source = top; }
public void AddChild(MaxDepthSource child) { Children.Add(child); child.Parent = this; }