public override void AddChildModel(IModel model) { var node = new LevelTreeNode() { Model = model }; node.AddDefaultChildNodesHack(); //add to tree Nodes.Add(node); }
public override ModelTreeNode AddItem() { var model = new Level(); var node = new LevelTreeNode(); node.AddDefaultChildNodesHack(); node.Model = model; AddSibling(node); return(node); }
public override ModelTreeNode AddItem() { var item = new Level(); var node = new LevelTreeNode() { Model = item }; node.AddDefaultChildNodesHack(); Nodes.Add(node); return(node); }