RepeatMarkDialogViewModel.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PDF_Office.ViewModels.Dialog.Redaction
  10. {
  11. public class RepeatMarkDialogViewModel : BindableBase, IDialogAware
  12. {
  13. public string Title => "";
  14. public event Action<IDialogResult> RequestClose;
  15. public DelegateCommand OkCommand { get; set; }
  16. public DelegateCommand CancelCommand { get; set; }
  17. public RepeatMarkDialogViewModel()
  18. {
  19. OkCommand = new DelegateCommand(ok);
  20. CancelCommand = new DelegateCommand(cancel);
  21. }
  22. private void ok()
  23. {
  24. }
  25. private void cancel()
  26. {
  27. RequestClose.Invoke(new DialogResult(ButtonResult.Cancel));
  28. }
  29. public bool CanCloseDialog()
  30. {
  31. return true;
  32. }
  33. public void OnDialogClosed()
  34. {
  35. }
  36. public void OnDialogOpened(IDialogParameters parameters)
  37. {
  38. }
  39. }
  40. }