DocumentaryTranslationDialogViewModel.cs 972 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Prism.Commands;
  2. using Prism.Mvvm;
  3. using Prism.Services.Dialogs;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. namespace PDF_Master.ViewModels.Dialog.ChatGPTAIDialogs
  8. {
  9. public class DocumentaryTranslationDialogViewModel : BindableBase, IDialogAware
  10. {
  11. public DelegateCommand CancelCommand { get; set; }
  12. public DocumentaryTranslationDialogViewModel()
  13. {
  14. CancelCommand = new DelegateCommand(cancel);
  15. }
  16. private void cancel()
  17. {
  18. RequestClose.Invoke(new DialogResult(ButtonResult.Cancel));
  19. }
  20. public string Title => "";
  21. public event Action<IDialogResult> RequestClose;
  22. public bool CanCloseDialog()
  23. {
  24. return true;
  25. }
  26. public void OnDialogClosed()
  27. {
  28. }
  29. public void OnDialogOpened(IDialogParameters parameters)
  30. {
  31. }
  32. }
  33. }