// *********************************************************************** // Assembly : HZH_Controls // Created : 08-09-2019 // // *********************************************************************** // // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com // // // Blog: https://www.cnblogs.com/bfyx // GitHub:https://github.com/kwwwvagaa/NetWinformControl // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git // // If you use this code, please keep this note. // *********************************************************************** using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HZH_Controls.Controls { /// /// Interface IPageControl /// public interface IPageControl { /// /// 数据源改变时发生 /// event PageControlEventHandler ShowSourceChanged; /// /// 数据源 /// /// The data source. List DataSource { get; set; } /// /// 显示数量 /// /// The size of the page. int PageSize { get; set; } /// /// 开始下标 /// /// The start index. int StartIndex { get; set; } /// /// 第一页 /// void FirstPage(); /// /// 前一页 /// void PreviousPage(); /// /// 下一页 /// void NextPage(); /// /// 最后一页 /// void EndPage(); /// /// 重新加载 /// void Reload(); /// /// 获取当前页数据 /// /// List<System.Object>. List GetCurrentSource(); /// /// 总页数 /// /// The page count. int PageCount { get; set; } /// /// 当前页 /// /// The index of the page. int PageIndex { get; set; } PageModel PageModel { get; set; } } }