12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Services.Dialogs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Office.ViewModels.Dialog.Redaction
- {
- public class MarkSettingDialogViewModel : BindableBase, IDialogAware
- {
- public string Title => "";
- public event Action<IDialogResult> RequestClose;
- public DelegateCommand OkCommand { get; set; }
- public DelegateCommand CancelCommand { get; set; }
- public MarkSettingDialogViewModel()
- {
- OkCommand = new DelegateCommand(ok);
- CancelCommand = new DelegateCommand(cancel);
- }
- private void cancel()
- {
- RequestClose.Invoke(new DialogResult(ButtonResult.Cancel));
- }
- private void ok()
- {
-
- }
- public bool CanCloseDialog()
- {
- return true;
- }
- public void OnDialogClosed()
- {
-
- }
- public void OnDialogOpened(IDialogParameters parameters)
- {
-
- }
- }
- }
|