Ejemplo n.º 1
0
        private async Task GetNextUsersPage(bool next)
        {
            using (new Loading(this))
            {
                var items = await _userPager.GetNextPage(next);

                Users = new ObservableCollection <User>(items);
            }

            HasNext = _userPager.HasNextPage();
            HasPrev = _userPager.HasPrevPage();
        }
        private async void GetNextUsersPage(bool next)
        {
            using (new Loading(this))
            {
                var items = await _userPager.GetNextPage(next);

                Users = new ObservableCollection <User>(items);
            }

            HasNext = _userPager.HasNextPage;
            HasPrev = _userPager.HasPrevPage;

            OnPropertyChanged(() => Users);
            OnPropertyChanged(() => HasNext);
            OnPropertyChanged(() => HasPrev);
        }