HomePageCompressDialogViewModel.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using Prism.Commands;
  2. using Prism.Mvvm;
  3. using Prism.Regions;
  4. using Prism.Services.Dialogs;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using System.Linq;
  9. using System.Windows;
  10. namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
  11. {
  12. public class HomePageCompressDialogViewModel : BindableBase, INavigationAware
  13. {
  14. public HomePageCompressDialogViewModel()
  15. {
  16. }
  17. private DataTable imagesDataTable = new DataTable();
  18. public DataTable ImagesDataTable
  19. {
  20. get { return imagesDataTable; }
  21. set
  22. {
  23. SetProperty(ref imagesDataTable, value);
  24. }
  25. }
  26. private string removeIsEnable = "False";
  27. public string RemoveIsEnable
  28. {
  29. get { return removeIsEnable; }
  30. set
  31. {
  32. SetProperty(ref removeIsEnable, value);
  33. }
  34. }
  35. private string selectFileName = "False";
  36. public string SelectFileName
  37. {
  38. get { return selectFileName; }
  39. set
  40. {
  41. SetProperty(ref selectFileName, value);
  42. }
  43. }
  44. private Visibility addFileVisibility = Visibility.Hidden;
  45. public Visibility AddFileVisibility
  46. {
  47. get { return addFileVisibility; }
  48. set
  49. {
  50. SetProperty(ref addFileVisibility, value);
  51. RaisePropertyChanged();
  52. }
  53. }
  54. public bool IsNavigationTarget(NavigationContext navigationContext)
  55. {
  56. return true;
  57. }
  58. public void OnNavigatedFrom(NavigationContext navigationContext)
  59. {
  60. }
  61. public void OnNavigatedTo(NavigationContext navigationContext)
  62. {
  63. }
  64. }
  65. }