1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using PDF_Master.Model;
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Regions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter
- {
- public class HomePageConverterWordViewModel : BindableBase, INavigationAware
- {
- public DelegateCommand<string> RadioButtonCommand { get; set; }
- public HomePageConverterDialogViewModel homePageConverterDialogViewModel { get; set; }
- public HomePageConverterWordViewModel()
- {
- RadioButtonCommand = new DelegateCommand<string>(radiobutton);
- }
- private void radiobutton(string e)
- {
- string radioButton = e;
- if (radioButton != null)
- {
- switch (radioButton)
- {
- case "FlowingTextRadioBtn":
- break;
- case "PageLayoutRadioBtn":
- break;
- default:
- break;
- }
- }
- }
- public void OnNavigatedTo(NavigationContext navigationContext)
- {
- var homePageConverterVM = navigationContext.Parameters[ParameterNames.ViewContentViewModel] as HomePageConverterDialogViewModel;
- if (homePageConverterVM != null)
- {
- homePageConverterDialogViewModel = homePageConverterVM;
- }
- }
- public bool IsNavigationTarget(NavigationContext navigationContext)
- {
- return true;
- }
- public void OnNavigatedFrom(NavigationContext navigationContext)
- {
- }
- }
- }
|