예제 #1
0
 public void AddRange(LoanCollection value)
 {
     for (int i = 0; (i < value.Count); i++)
     {
         this.Add(value.List[i] as LoanInfo);
     }
 }
예제 #2
0
        public LoanCollection Pagination(int pageIndex, int pageSize)
        {
            if (InnerList.Count == 0)
            {
                return(null);
            }

            int start = pageSize * (pageIndex - 1);
            int end   = start + pageSize - 1;

            if (end > InnerList.Count - 1)
            {
                end = InnerList.Count - 1;
            }

            LoanCollection pages = new LoanCollection();

            for (int i = start; i <= end; i++)
            {
                pages.Add(InnerList[i] as LoanInfo);
            }

            return(pages);
        }
예제 #3
0
 public LoanCollectionEnumerator(LoanCollection mappings)
 {
     enumerator = ((IEnumerable)mappings).GetEnumerator();
 }
예제 #4
0
 public LoanCollectionEnumerator(LoanCollection mappings)
 {
     enumerator = ((IEnumerable)mappings).GetEnumerator();
 }
예제 #5
0
        public LoanCollection Pagination(int pageIndex, int pageSize)
        {
            if (InnerList.Count == 0)
                return null;

            int start = pageSize * (pageIndex - 1);
            int end = start + pageSize - 1;

            if (end > InnerList.Count - 1)
                end = InnerList.Count - 1;

            LoanCollection pages = new LoanCollection();

            for (int i = start; i <= end; i++)
            {
                pages.Add(InnerList[i] as LoanInfo);
            }

            return pages;
        }
예제 #6
0
 public void AddRange(LoanCollection value)
 {
     for (int i = 0; (i < value.Count); i++)
     {
         this.Add(value.List[i] as LoanInfo);
     }
 }