|
private async void LoadMoreItems(object obj)
{
var listview = obj as Syncfusion.ListView.XForms.SfListView;
IsBusy = true;
int index = (int)(woList.Count / 25);
await FetchData(index, 25);
IsBusy = false;
}
public async Task FetchData(int index, int count)
{
var woDetails = new Access();
List<WOList> lst = await woDetails.GetData(index, count, Mode, SelectedStatus);
foreach (WOList w in lst)
{
woList.Add(w);
}
} |
|
private async void LoadMoreItems(object obj)
{
var listview = obj as Syncfusion.ListView.XForms.SfListView;
if (IsBusy)
return;
IsBusy = true;
int index = (int)(woList.Count / 25);
await FetchData(index, 25);
IsBusy = false;
}
|