private void btnRefresh_Click(object sender, EventArgs e) { if (Page_Change != null) { var args = new PageIndex_Change_EventArgs(PageSize, txtCurrentPageIndex.Value); Page_Change.Invoke(sender, args); } }
public void RefreshData() { if (Page_Change != null) { var args = new PageIndex_Change_EventArgs(PageSize, _CurrentPageIndex); Page_Change.Invoke(new object(), args); txtCurrentPageIndex.Refresh(); } }