SubscriptionDialogViewModel.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.Diagnostics;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace PDF_Master.ViewModels.Dialog.ServiceDialog
  12. {
  13. public class SubscriptionDialogViewModel : BindableBase, IDialogAware
  14. {
  15. public string Title => "";
  16. public event Action<IDialogResult> RequestClose;
  17. #region 文案
  18. #endregion
  19. private string _uristore = "https://www.pdfreaderpro.com/windows/store/permanent";
  20. public string Uristore
  21. {
  22. get { return _uristore; }
  23. set
  24. {
  25. SetProperty(ref _uristore, value);
  26. }
  27. }
  28. public DelegateCommand LinkstoreCommand { get; set; }
  29. private void InitString()
  30. {
  31. LinkstoreCommand = new DelegateCommand(Linkstore);
  32. }
  33. private void Linkstore()
  34. {
  35. Process.Start(new ProcessStartInfo(Uristore));
  36. }
  37. public bool CanCloseDialog()
  38. {
  39. return true;
  40. }
  41. public void OnDialogClosed()
  42. {
  43. }
  44. public void OnDialogOpened(IDialogParameters parameters)
  45. {
  46. }
  47. public SubscriptionDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
  48. {
  49. //GoLoginCommand = new DelegateCommand(GoLogin);
  50. InitString();
  51. }
  52. }
  53. }