示例#1
0
 public static async Task MoveCurrentPageIndex(this IPaginatorController pie, int offset)
 => await pie.SetCurrentPageIndex((await pie.GetPageIndex()) + offset);
示例#2
0
 public static Task SetFocusPageAt(this IPaginatorController pie, int index)
 => pie.SetFocusPage(pie[index.NormalizeIndex(pie.Count)]);
示例#3
0
        public static Task MovePagedDataSetOffset(this IPaginatorController pie, IPagedDataSet pd, int offset)
        {
            var index = pie.IndexOf(pd);

            return(pie.MovePagedDataSet(pd, index != -1 ? index + offset : offset));
        }
示例#4
0
        public static async Task SetFocusPageAtOffset(this IPaginatorController pie, int offset)
        {
            var ci = pie.IndexOf(await pie.GetCurrentFocusPage());

            await(ci != -1 ? pie.SetFocusPageAt(ci + offset) : pie.SetFocusPageAt(offset));
        }