コード例 #1
0
        public async Task ItemTresholdReached()
        {
            try
            {
                IsWorking = true;
                string query = null;
                CurrentPage++;

                query = GetQueryString();

                await Keeper.Reload(query, CurrentPage, PageSize);

                if (Keeper.Items.Count > 0)
                {
                    Items.AddRange(Keeper.Items);
                }
            }
            catch (Exception ex)
            {
                Static.Functions.CreateError(ex, ex.GetType().ToString(), nameof(this.Reload), this.GetType().Name);
                DependencyService.Get <IToaster>().ShortAlert($"Error: {ex.Message}");
            }
            IsWorking = false;
        }