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