[C#]自定义分页控件的实现

private void ucPage1_onPageDown()
{
    if (curPage >= ucPage1.PageCount)
    {
        XtraMessageBox.Show("当前已经是最后一页了!", "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
    }
    else
    {
        curPage  ;
        InitCorpList();
    }
}

private void ucPage1_onPageGoFirst()
{
    curPage = 1;
    InitCorpList();
}

private void ucPage1_onPageGoLast()
{
    curPage = this.ucPage1.PageCount;
    InitCorpList();
}

private void ucPage1_onPageUp()
{
    if (curPage <= 1)
    {
        XtraMessageBox.Show("当前已经是第一页了!", "友情提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
    }
    else
    {
        curPage--;
        InitCorpList();
    }
}
posted @ 2012-07-18 17:49  Hsppl  阅读(195)  评论(0编辑  收藏  举报