protected void OnExportAll(PageEventArgs args) { if (mExportAll != null) { mExportAll(this, args); } }
protected void OnExportCurrent(PageEventArgs args) { if (mExportCurrent != null) { mExportCurrent(this, args); } }
protected void OnPageChanged(PageEventArgs e) { if (mPageChanged != null) { mPageChanged(this, e); } }
private void pageCtrl_PageChanged(object sender, PageEventArgs args) { if (mDataGridView != null) { this.mDataGridView.OffsetIndex = args.StartIndex - 1; this.mDataGridView.Rows.Clear(); } }
private void btnExportAll_Click(object sender, EventArgs e) { PageEventArgs args = new PageEventArgs(mCurrentPage, mTotalRecords, mRecordsPerPage, mTotalPage); OnExportAll(args); }
private void DoPageChanged() { PageEventArgs args = new PageEventArgs(mCurrentPage, mTotalRecords, mRecordsPerPage, mTotalPage); OnPageChanged(args); }