示例#1
0
 public async Task LoadFilesAsync()
 {
     Loaded    = false;
     Elements  = (await S3BrowserService.GetFileListAsync(BucketName, DecodedPrefix, SearchText, Size, Page * Size)).ToList();
     Loaded    = true;
     AllLoaded = Elements.Count < Size;
 }
示例#2
0
        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);
        }