예제 #1
0
        //-----------------------------------------------------------------------------------
        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);
        }
예제 #2
0
        //-----------------------------------------------------------------------------------
        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);
        }
예제 #3
0
        //-----------------------------------------------------------------------------------
        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);
                }
            }
        }