private void _collectNodesOfNodeType(object VisitedNodeKey, NodeVisitEventArgs NodeVisitEventArgs) { CswNbtNodeKey CswNbtNodeKey = (CswNbtNodeKey)VisitedNodeKey; if (CswNbtNodeKey.NodeTypeId == NodeVisitEventArgs.NodeTypeIdToFilter) { _NodesOfNodeType.Add(CswNbtNodeKey.NodeId); } // }
private void _collectNodesOfClass(object VisitedNodeKey, NodeVisitEventArgs NodeVisitEventArgs) { CswNbtNodeKey CswNbtNodeKey = (CswNbtNodeKey)VisitedNodeKey; if (CswNbtNodeKey.ObjectClassId == NodeVisitEventArgs.ObjectClassIdToFilter) { _NodesOfClass.Add(CswNbtNodeKey.NodeId); } // }
//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); }
/// <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); }