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