//----------------------------------------------------------------------------------- public bool HasAnyChildrenAllowed(CommandNode node) { listTreeNodeAux_.Clear(); node.GetHierarchyPlainList(listTreeNodeAux_); foreach (CRTreeNode treeNode in listTreeNodeAux_) { CommandNode cNode = (CommandNode)treeNode; if (IsAllowedNode(cNode)) { return(true); } } return(false); }
//----------------------------------------------------------------------------------- public bool HasAnyChildrenAllowed(CommandNode node) { listTreeNodeAux_.Clear(); node.GetHierarchyPlainList(listTreeNodeAux_); foreach (CRTreeNode treeNode in listTreeNodeAux_) { CommandNode cNode = (CommandNode)treeNode; if (CheckIfAllowedBody(cNode) || CheckIfAllowedMultiJoint(cNode) || CheckIfAllowedServos(cNode) || CheckIfAllowedEntity(cNode)) { return(true); } } return(false); }
//----------------------------------------------------------------------------------- private void FilterChildrenAndMergeFieldWithParents(CommandNode cNode) { listTreeNodeAux_.Clear(); cNode.GetHierarchyPlainList(listTreeNodeAux_); foreach (CRTreeNode treeNode in listTreeNodeAux_) { CommandNode myCurrentNode = (CommandNode)treeNode; if (listCommandNodeCurrent_.Contains(myCurrentNode)) { listCommandNodeCurrent_.Remove(myCurrentNode); } if (myCurrentNode != cNode && field_.ContainsNode(myCurrentNode)) { field_.RemoveNode(myCurrentNode); } } }