//Scroll private void MainScrollEventOnLoadMoreEvent(object sender, EventArgs e) { try { //Code get last id where LoadMore >> var item = MAdapter.GroupList.LastOrDefault(); if (item != null && !string.IsNullOrEmpty(item.GroupId) && !MainScrollEvent.IsLoading) { ContextSearch.OffsetGroup = item.GroupId; ContextSearch.StartApiService(); } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }
//Scroll private void MainScrollEventOnLoadMoreEvent(object sender, EventArgs e) { try { //Code get last id where LoadMore >> var item = MAdapter.PageList.LastOrDefault(); if (item != null && !string.IsNullOrEmpty(item.PageId) && !MainScrollEvent.IsLoading) { ContextSearch.OffsetPage = item.PageId; ContextSearch.StartApiService(); } } catch (Exception exception) { Console.WriteLine(exception); } }