1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using PDF_Office.EventAggregators;
- using Prism.Commands;
- using Prism.Events;
- using Prism.Mvvm;
- using Prism.Regions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace PDF_Office.ViewModels.EditTools.Bates
- {
- public class BatesTemplateListContentViewModel : BindableBase, INavigationAware
- {
- public DelegateCommand EnterCreateCommand { get; set; }
- public IEventAggregator eventAggregator;
- public string Unicode = null;
- public BatesTemplateListContentViewModel(IEventAggregator eventAggregator)
- {
- this.eventAggregator = eventAggregator;
- Unicode = App.mainWindowViewModel.SelectedItem.Unicode;
- EnterCreateCommand = new DelegateCommand(EnterCreate);
- }
- public void EnterCreate()
- {
- this.eventAggregator.GetEvent<EnterTemplateListOrCreateEvent>().Publish(new EnumTemplateListOrCreateUnicode { Unicode = Unicode, Status = EnumTemplateListOrCreate.StatusCreate });
- }
- public bool IsNavigationTarget(NavigationContext navigationContext)
- {
- return true;
- }
- public void OnNavigatedFrom(NavigationContext navigationContext)
- {
- }
- public void OnNavigatedTo(NavigationContext navigationContext)
- {
- }
- }
- }
|