예제 #1
0
        public static bool SearchPartialList(ListContentCollection contents, SearchContext searchContext, int startChild, int endChild)
        {
            if (contents == null)
            {
                return(false);
            }
            bool        flag        = false;
            ListContent listContent = null;

            while (startChild <= endChild && !flag)
            {
                listContent = contents[startChild];
                flag        = listContent.ReportItemCollection.Search(searchContext);
                startChild++;
            }
            return(flag);
        }
예제 #2
0
 public ListContent this[int index]
 {
     get
     {
         if (index >= 0 && index < this.Count)
         {
             ListContent listContent = null;
             if (index == 0)
             {
                 listContent = this.m_firstListContent;
             }
             else if (this.m_listContents != null)
             {
                 listContent = this.m_listContents[index - 1];
             }
             if (listContent == null)
             {
                 listContent = new ListContent(this.m_owner, index);
                 if (this.m_owner.RenderingContext.CacheState)
                 {
                     if (index == 0)
                     {
                         this.m_firstListContent = listContent;
                     }
                     else
                     {
                         if (this.m_listContents == null)
                         {
                             this.m_listContents = new ListContent[this.Count - 1];
                         }
                         this.m_listContents[index - 1] = listContent;
                     }
                 }
             }
             return(listContent);
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, this.Count);
     }
 }
예제 #3
0
        public static bool SearchFullList(ListContentCollection contents, SearchContext searchContext)
        {
            if (contents == null)
            {
                return(false);
            }
            bool        flag        = false;
            ListContent listContent = null;

            for (int i = 0; i < contents.Count; i++)
            {
                if (flag)
                {
                    break;
                }
                listContent = contents[i];
                if (!listContent.Hidden)
                {
                    flag = listContent.ReportItemCollection.Search(searchContext);
                }
            }
            return(flag);
        }