예제 #1
0
 private async Task DownloadFile(UploadFileItem item)
 {
     if (item.State == UploadState.Success && OnDownload.HasDelegate)
     {
         await OnDownload.InvokeAsync(item);
     }
 }
예제 #2
0
 private async Task PreviewFile(UploadFileItem item)
 {
     if (item.State == UploadState.Success && OnPreview.HasDelegate)
     {
         await OnPreview.InvokeAsync(item);
     }
 }
예제 #3
0
        private async Task RemoveFile(UploadFileItem item)
        {
            var canRemove = OnRemove == null || await OnRemove?.Invoke(item);

            if (canRemove)
            {
                this.FileList.Remove(item);
                StateHasChanged();
            }
        }