public void AddChild(DependenceNode node) { node.parent = this; node.ChangeLayer(layer + 1); editorOpen = true; node.deleteHandler = DeleteChild; childList.Add(node); node.ChangeIndex(childList.IndexOf(node)); }
public void AddTree(DependenceNode tree) { if (m_treeList.Contains(tree)) { return; } tree.ChangeLayer(0); tree.deleteHandler = DeleteTree; m_treeList.Add(tree); tree.ChangeIndex(m_treeList.IndexOf(tree)); }