12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using PDF_Office.Helper;
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Regions;
- using Prism.Services.Dialogs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Threading;
- namespace PDF_Office.ViewModels.Dialog.ServiceDialog
- {
- public class RegisterOKRegionViewModel : BindableBase, INavigationAware
- {
- private static Guid myuuid = Guid.NewGuid();
- private string uuid = myuuid.ToString();
- private RegisterDialogViewModel RegisterDialogViewModel;
- public IDialogService dialogs;
-
-
- public bool IsNavigationTarget(NavigationContext navigationContext)
- {
- return true;
- }
- public void OnNavigatedFrom(NavigationContext navigationContext)
- {
- }
- public void OnNavigatedTo(NavigationContext navigationContext)
- {
- navigationContext.Parameters.TryGetValue<RegisterDialogViewModel>("RegisterDialogViewModel", out RegisterDialogViewModel);
- }
- public DelegateCommand RegisterGetStartCommand { get; set; }
- public DelegateCommand CloseDialogCommand { get; set; }
- public RegisterOKRegionViewModel(IRegionManager regionManager, IDialogService dialogService)
- {
-
- dialogs = dialogService;
- RegisterGetStartCommand = new DelegateCommand(RegisterGetStart);
- CloseDialogCommand = new DelegateCommand(CloseDialog);
- }
- private void CloseDialog()
- {
- RegisterDialogViewModel.Close();
- }
- private void RegisterGetStart()
- {
- RegisterDialogViewModel.Close();
-
- }
- }
- }
|