public override async Task OnItemAppearingAsync(IEmployeeListItemViewModel item) { if (!ToPaginate) { return; } var client = item as AgencyInterpretersListItemViewModel; var clientIsLastVisible = client == Employees.Last(); if (clientIsLastVisible) { var fromId = client.Employee.InterpreterId; var countNew = await LoadDataAsync(fromId); if (countNew == 0) { ToPaginate = false; } } }
public override void OnItemSelected(IEmployeeListItemViewModel selectedItem) { var item = selectedItem as AgencyInterpretersListItemViewModel; App.Current.MainPage.Navigation.PushAsync(new EmployeeProfilePage(item.Employee, this)); }
public virtual void OnItemSelected(IEmployeeListItemViewModel selectedItem) { }
public virtual async Task OnItemAppearingAsync(IEmployeeListItemViewModel item) { }
public override void OnItemSelected(IEmployeeListItemViewModel selectedItem) { var item = selectedItem as BusinessClientsListItemViewModel; App.Current.MainPage.Navigation.PushAsync(new ClientProfilePage(item.Client, this)); }