12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using Prism.Mvvm;
- using Prism.Regions;
- using Prism.Services.Dialogs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Master.ViewModels.Dialog.ServiceDialog
- {
- public class SubscriptionOKDialogViewModel : BindableBase, IDialogAware
- {
- public string Title => "";
- public event Action<IDialogResult> RequestClose;
- #region 文案
- private string _TextSubscribeSuccessfully;
- public string TextSubscribeSuccessfully
- {
- get { return _TextSubscribeSuccessfully; }
- set { _TextSubscribeSuccessfully = value; }
- }
- private string _TextEnjoyall;
- public string TextEnjoyall
- {
- get { return _TextEnjoyall; }
- set { _TextEnjoyall = value; }
- }
- private string _TextOK;
- public string TextOK
- {
- get { return _TextOK; }
- set { _TextOK = value; }
- }
- #endregion
- private void InitString()
- {
- TextSubscribeSuccessfully = App.ServiceLoader.GetString("TextSubscribeSuccessfully");
- TextEnjoyall = App.ServiceLoader.GetString("TextEnjoyall");
- TextOK = App.ServiceLoader.GetString("Text_ok");
- }
- public bool CanCloseDialog()
- {
- return true;
- }
- public void OnDialogClosed()
- {
- }
- public void OnDialogOpened(IDialogParameters parameters)
- {
- }
- public SubscriptionOKDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
- {
- //GoLoginCommand = new DelegateCommand(GoLogin);
- InitString();
- }
- }
- }
|