HomePageConverterWordViewModel.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using PDF_Master.Model;
  2. using Prism.Commands;
  3. using Prism.Mvvm;
  4. using Prism.Regions;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter
  9. {
  10. public class HomePageConverterWordViewModel : BindableBase, INavigationAware
  11. {
  12. public DelegateCommand<string> RadioButtonCommand { get; set; }
  13. public HomePageConverterDialogViewModel homePageConverterDialogViewModel { get; set; }
  14. public HomePageConverterWordViewModel()
  15. {
  16. RadioButtonCommand = new DelegateCommand<string>(radiobutton);
  17. }
  18. private void radiobutton(string e)
  19. {
  20. string radioButton = e;
  21. if (radioButton != null)
  22. {
  23. switch (radioButton)
  24. {
  25. case "FlowingTextRadioBtn":
  26. break;
  27. case "PageLayoutRadioBtn":
  28. break;
  29. default:
  30. break;
  31. }
  32. }
  33. }
  34. public void OnNavigatedTo(NavigationContext navigationContext)
  35. {
  36. var homePageConverterVM = navigationContext.Parameters[ParameterNames.ViewContentViewModel] as HomePageConverterDialogViewModel;
  37. if (homePageConverterVM != null)
  38. {
  39. homePageConverterDialogViewModel = homePageConverterVM;
  40. }
  41. }
  42. public bool IsNavigationTarget(NavigationContext navigationContext)
  43. {
  44. return true;
  45. }
  46. public void OnNavigatedFrom(NavigationContext navigationContext)
  47. {
  48. }
  49. }
  50. }