Beispiel #1
0
 public void Init(int total)
 {
     this.NumberTotal = total;
     this.PageTotal   = PageUtil.GetPageTotal(this.NumberTotal, this.PageSize);
     this.PageNow     = PageUtil.GetPageNow(this.PageAction, this.PageNow, this.PageTotal);
     this.FirstResult = PageUtil.GetFirstResult(this.PageNow, this.PageSize, this.NumberTotal);
     this.MaxResults  = PageUtil.GetMaxResults(this.PageSize);
 }