public async Task LoadFilesAsync() { Loaded = false; Elements = (await S3BrowserService.GetFileListAsync(BucketName, DecodedPrefix, SearchText, Size, Page * Size)).ToList(); Loaded = true; AllLoaded = Elements.Count < Size; }
public async Task LoadMoreFilesAsync() { if (AllLoaded) { return; } Page++; var moreFiles = await S3BrowserService.GetFileListAsync(BucketName, DecodedPrefix, SearchText, Size, Page *Size); if (!moreFiles.Any()) { AllLoaded = true; return; } Elements.AddRange(moreFiles); }