1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Regions;
- using Prism.Services.Dialogs;
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Master.ViewModels.Dialog.ServiceDialog
- {
- public class SubscriptionDialogViewModel : BindableBase, IDialogAware
- {
- public string Title => "";
- public event Action<IDialogResult> RequestClose;
- #region 文案
- #endregion
- private string _uristore = "https://www.pdfreaderpro.com/windows/store/permanent";
- public string Uristore
- {
- get { return _uristore; }
- set
- {
- SetProperty(ref _uristore, value);
- }
- }
- public DelegateCommand LinkstoreCommand { get; set; }
- private void InitString()
- {
-
- }
- public SubscriptionDialogViewModel(IRegionManager regionManager, IDialogService dialogService)
- {
- LinkstoreCommand = new DelegateCommand(Linkstore);
- InitString();
- }
- private void Linkstore()
- {
- Process.Start(new ProcessStartInfo(Uristore));
- }
- public bool CanCloseDialog()
- {
- return true;
- }
- public void OnDialogClosed()
- {
- }
- public void OnDialogOpened(IDialogParameters parameters)
- {
- }
- }
- }
|