IAPCompareDialogViewModel.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. using PDF_Master.DataConvert;
  2. using Prism.Commands;
  3. using Prism.Mvvm;
  4. using Prism.Regions;
  5. using Prism.Services.Dialogs;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Diagnostics;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. namespace PDF_Master.ViewModels.Dialog.ServiceDialog
  13. {
  14. public class IAPCompareDialogViewModel : BindableBase,IDialogAware
  15. {
  16. public string Title => "";
  17. public event Action<IDialogResult> RequestClose;
  18. #region 文案
  19. #endregion
  20. private string _Text_Signup = "";
  21. public string Text_Signup
  22. {
  23. get { return _Text_Signup; }
  24. set
  25. {
  26. SetProperty(ref _Text_Signup, value);
  27. }
  28. }
  29. private string _uristore = "https://www.pdfreaderpro.com/windows/store/permanent";
  30. public string Uristore
  31. {
  32. get { return _uristore; }
  33. set
  34. {
  35. SetProperty(ref _uristore, value);
  36. }
  37. }
  38. public DelegateCommand LinkstoreCommand { get; set; }
  39. private void InitString()
  40. {
  41. //Text_Signup = App.ServiceLoader.GetString("Text_Signup");
  42. LinkstoreCommand = new DelegateCommand(Linkstore);
  43. }
  44. private void Linkstore()
  45. {
  46. Process.Start(new ProcessStartInfo(Uristore));
  47. }
  48. public bool CanCloseDialog()
  49. {
  50. return true;
  51. }
  52. public void OnDialogClosed()
  53. {
  54. }
  55. public void OnDialogOpened(IDialogParameters parameters)
  56. {
  57. }
  58. public DelegateCommand GoLoginCommand { get; set; }
  59. public IAPCompareDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
  60. {
  61. //GoLoginCommand = new DelegateCommand(GoLogin);
  62. InitString();
  63. }
  64. }
  65. }