private async Task DownloadFile(UploadFileItem item) { if (item.State == UploadState.Success && OnDownload.HasDelegate) { await OnDownload.InvokeAsync(item); } }
private async Task PreviewFile(UploadFileItem item) { if (item.State == UploadState.Success && OnPreview.HasDelegate) { await OnPreview.InvokeAsync(item); } }
private async Task RemoveFile(UploadFileItem item) { var canRemove = OnRemove == null || await OnRemove?.Invoke(item); if (canRemove) { this.FileList.Remove(item); StateHasChanged(); } }