示例#1
0
 private void lblPrev_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     this.PageIndex = ((this.PageIndex - 1) < 1) ? 1 : (this.PageIndex - 1);
     if (this.OnPageIndexChanged != null)
     {
         PageChangedEventArg arg = new PageChangedEventArg {
             CurrentPageIndex = this.PageIndex
         };
         this.OnPageIndexChanged(this, arg);
     }
     this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount() + "页  总数:" + this.TotalDataCount.ToString() + "条";
 }
示例#2
0
 private void txtTo_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Return)
     {
         this.PageIndex  = int.Parse(this.txtTo.Text);
         this.txtTo.Text = this.PageIndex.ToString();
         if (this.OnPageIndexChanged != null)
         {
             PageChangedEventArg arg = new PageChangedEventArg {
                 CurrentPageIndex = this.PageIndex
             };
             this.OnPageIndexChanged(this, arg);
         }
         this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount().ToString() + "页  总数:" + this.TotalDataCount.ToString() + "条";
     }
 }
示例#3
0
 private void comPageSize_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.comPageSize.Text == "最大值")
     {
         this._PageSize = 0x7fffffff;
     }
     else
     {
         this._PageSize = int.Parse(this.comPageSize.Text);
     }
     if (this.OnPageIndexChanged != null)
     {
         PageChangedEventArg arg = new PageChangedEventArg {
             CurrentPageIndex = 1
         };
         this.OnPageIndexChanged(this, arg);
     }
     this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount() + "页  总数:" + this.TotalDataCount.ToString() + "条";
 }
示例#4
0
 private void comPageSize_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.comPageSize.Text == "最大值") {
         this._PageSize = 0x7fffffff;
     } else {
         this._PageSize = int.Parse(this.comPageSize.Text);
     }
     if (this.OnPageIndexChanged != null) {
         PageChangedEventArg arg = new PageChangedEventArg {
             CurrentPageIndex = 1
         };
         this.OnPageIndexChanged(this, arg);
     }
     this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount() + "页  总数:" + this.TotalDataCount.ToString() + "条";
 }
示例#5
0
 private void txtTo_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Return) {
         this.PageIndex = int.Parse(this.txtTo.Text);
         this.txtTo.Text = this.PageIndex.ToString();
         if (this.OnPageIndexChanged != null) {
             PageChangedEventArg arg = new PageChangedEventArg {
                 CurrentPageIndex = this.PageIndex
             };
             this.OnPageIndexChanged(this, arg);
         }
         this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount().ToString() + "页  总数:" + this.TotalDataCount.ToString() + "条";
     }
 }
示例#6
0
 private void lblPrev_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     this.PageIndex = ((this.PageIndex - 1) < 1) ? 1 : (this.PageIndex - 1);
     if (this.OnPageIndexChanged != null) {
         PageChangedEventArg arg = new PageChangedEventArg {
             CurrentPageIndex = this.PageIndex
         };
         this.OnPageIndexChanged(this, arg);
     }
     this.lblResult.Text = "当前页数:" + this.PageIndex.ToString() + "/" + this.MaxPageCount() + "页  总数:" + this.TotalDataCount.ToString() + "条";
 }