Exemple #1
0
    public void RemoveChild(AGrowable child)
    {
        Assert.IsTrue(Children.ContainsKey(child.Type), "Keys must be initialized in the constructor.");

        child.SetParent(null);
        Children[child.Type].Remove(child);
    }
Exemple #2
0
    public void AddChild(AGrowable child)
    {
        Assert.IsTrue(Children.ContainsKey(child.Type), "Keys must be initialized in the constructor.");

        child.SetParent(this);
        Children[child.Type].Add(child);
    }