Example #1
0
        private void _collectNodesOfNodeType(object VisitedNodeKey, NodeVisitEventArgs NodeVisitEventArgs)
        {
            CswNbtNodeKey CswNbtNodeKey = (CswNbtNodeKey)VisitedNodeKey;

            if (CswNbtNodeKey.NodeTypeId == NodeVisitEventArgs.NodeTypeIdToFilter)
            {
                _NodesOfNodeType.Add(CswNbtNodeKey.NodeId);
            } //
        }
Example #2
0
        private void _collectNodesOfClass(object VisitedNodeKey, NodeVisitEventArgs NodeVisitEventArgs)
        {
            CswNbtNodeKey CswNbtNodeKey = (CswNbtNodeKey)VisitedNodeKey;

            if (CswNbtNodeKey.ObjectClassId == NodeVisitEventArgs.ObjectClassIdToFilter)
            {
                _NodesOfClass.Add(CswNbtNodeKey.NodeId);
            } //
        }
Example #3
0
        //getNodeKeysOfClass()


        /// <summary>
        ///     Returns all node keys of nodes of a given NodeType
        /// </summary>
        /// <param name="NodeTypeId">Primary key of Node Type</param>
        public Collection <CswPrimaryKey> getNodeKeysOfNodeType(Int32 NodeTypeId)
        {
            _NodesOfNodeType = new Collection <CswPrimaryKey>();

            OnIterateNode      = _collectNodesOfNodeType;
            NodeVisitEventArgs = new NodeVisitEventArgs();
            NodeVisitEventArgs.NodeTypeIdToFilter = NodeTypeId;

            iterateTree();

            return(_NodesOfNodeType);
        }
Example #4
0
        /// <summary>
        ///     Returns all node keys of nodes of a given Object Class
        /// </summary>
        /// <param name="ObjectClassId">Primary key of Object Class</param>
        public Collection <CswPrimaryKey> getNodeKeysOfClass(Int32 ObjectClassId)
        {
            _NodesOfClass = new Collection <CswPrimaryKey>();

            OnIterateNode      = _collectNodesOfClass;
            NodeVisitEventArgs = new NodeVisitEventArgs();
            NodeVisitEventArgs.ObjectClassIdToFilter = ObjectClassId;

            iterateTree();

            return(_NodesOfClass);
        }