Beispiel #1
0
        public override bool MoveNext()
        {
            this.m_current = null;
            if (this.m_nodeInfoStack == null)
            {
                this.m_nodeInfoStack = new Stack <IEnumerator <AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode> >();
                this.m_current       = new DocumentMapNode(this.m_oldDocMap.Label, this.m_oldDocMap.Id, this.m_nodeInfoStack.Count + 1);
                this.m_nodeInfoStack.Push(((IEnumerable <AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode>) this.m_oldDocMap.Children).GetEnumerator());
                return(true);
            }
            if (this.m_nodeInfoStack.Count == 0)
            {
                return(false);
            }
            while (this.m_nodeInfoStack.Count > 0 && !this.m_nodeInfoStack.Peek().MoveNext())
            {
                this.m_nodeInfoStack.Pop();
            }
            if (this.m_nodeInfoStack.Count == 0)
            {
                return(false);
            }
            IEnumerator <AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode> enumerator = this.m_nodeInfoStack.Peek();

            AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode current = enumerator.Current;
            this.m_current = new DocumentMapNode(current.Label, current.Id, this.m_nodeInfoStack.Count + 1);
            if (current.Children != null && current.Children.Length != 0)
            {
                this.m_nodeInfoStack.Push(((IEnumerable <AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode>)current.Children).GetEnumerator());
            }
            return(true);
        }
 public DocumentMapNode(AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode underlyingNode)
 {
     Global.Tracer.Assert(underlyingNode != null, "The document map node being wrapped cannot be null.");
     this.m_underlyingNode = underlyingNode;
 }
 public DocumentMapNodeInfo(DocumentMapNode docMapNode, DocumentMapNodeInfo[] children)
 {
     this.m_id       = docMapNode.Id;
     this.m_label    = docMapNode.Label;
     this.m_children = children;
 }
Beispiel #4
0
 public override void Close()
 {
     this.m_oldDocMap = null;
     base.m_isClosed  = true;
 }
Beispiel #5
0
 public ShimDocumentMap(AspNetCore.ReportingServices.ReportProcessing.DocumentMapNode aOldDocMap)
 {
     this.m_oldDocMap = aOldDocMap;
     this.Reset();
 }