WatingDownload.razor.cs 935 B

1234567891011121314151617181920212223242526272829303132333435
  1. using AntDesign;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace wispro.sp.web.Components
  7. {
  8. public partial class WatingDownload
  9. {
  10. private share.FileProcessTask processTask;
  11. private IFeedbackRef feedbackRef;
  12. protected override Task OnInitializedAsync()
  13. {
  14. processTask = base.Options ?? new share.FileProcessTask();
  15. base.OnInitialized();
  16. feedbackRef = base.FeedbackRef;
  17. return base.OnInitializedAsync();
  18. }
  19. string _ErrorMessage;
  20. private async void OnFinish()
  21. {
  22. await base.OnFeedbackOkAsync(new ModalClosingEventArgs() { Cancel = true });
  23. }
  24. private void OnCancel()
  25. {
  26. base.OnFeedbackCancelAsync(new ModalClosingEventArgs() { Cancel = true });
  27. //_ = feedbackRef.CloseAsync();
  28. }
  29. }
  30. }