コード例 #1
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));
        }
コード例 #2
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));
        }