Exemple #1
0
        protected async Task DoPage(int page, int perPage)
        {
            Take         = perPage;
            CurrentPage += page;
            Values       = await Page.Invoke(CurrentPage, Take);

            await ValuesChanged.InvokeAsync(Values);
        }
Exemple #2
0
        protected async Task DoSort(string header)
        {
            if (SortDirection != SortDirection.Ascending)
            {
                SortDirection = SortDirection.Ascending;
            }
            else
            {
                SortDirection = SortDirection.Descending;
            }

            SortBy = header;
            Values = await Sort.Invoke(header, SortDirection);

            await ValuesChanged.InvokeAsync(Values);
        }