SubscriptionOKDialogViewModel.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using Prism.Mvvm;
  2. using Prism.Regions;
  3. using Prism.Services.Dialogs;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PDF_Master.ViewModels.Dialog.ServiceDialog
  10. {
  11. public class SubscriptionOKDialogViewModel : BindableBase, IDialogAware
  12. {
  13. public string Title => "";
  14. public event Action<IDialogResult> RequestClose;
  15. #region 文案
  16. private string _TextSubscribeSuccessfully;
  17. public string TextSubscribeSuccessfully
  18. {
  19. get { return _TextSubscribeSuccessfully; }
  20. set { _TextSubscribeSuccessfully = value; }
  21. }
  22. private string _TextEnjoyall;
  23. public string TextEnjoyall
  24. {
  25. get { return _TextEnjoyall; }
  26. set { _TextEnjoyall = value; }
  27. }
  28. private string _TextOK;
  29. public string TextOK
  30. {
  31. get { return _TextOK; }
  32. set { _TextOK = value; }
  33. }
  34. #endregion
  35. private void InitString()
  36. {
  37. TextSubscribeSuccessfully = App.ServiceLoader.GetString("TextSubscribeSuccessfully");
  38. TextEnjoyall = App.ServiceLoader.GetString("TextEnjoyall");
  39. TextOK = App.ServiceLoader.GetString("Text_ok");
  40. }
  41. public bool CanCloseDialog()
  42. {
  43. return true;
  44. }
  45. public void OnDialogClosed()
  46. {
  47. }
  48. public void OnDialogOpened(IDialogParameters parameters)
  49. {
  50. }
  51. public SubscriptionOKDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
  52. {
  53. //GoLoginCommand = new DelegateCommand(GoLogin);
  54. InitString();
  55. }
  56. }
  57. }