private XMutableTreeNode createChildTreeNode(Object oMutTreeModel, String name, XMutableTreeNode parent = null) { if (oMutTreeModel != null && oMutTreeModel is XMutableTreeDataModel) { var node = ((XMutableTreeDataModel)oMutTreeModel).createNode(Any.Get(name), false); if (parent == null) parent = ((XMutableTreeDataModel)oMutTreeModel).getRoot() as XMutableTreeNode; if (parent != null) { parent.appendChild(node); return node; } } return null; }
private XMutableTreeNode createChildTreeNode(String name, XMutableTreeNode parent = null) { return createChildTreeNode(oMutTreeModel, name, parent); }