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)); }
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)); }