|
@@ -24,6 +24,7 @@ using PDF_Master.Properties;
|
|
|
using PDF_Master.Helper;
|
|
|
using PDFSettings;
|
|
|
using PDF_Master.ViewModels.Dialog.ServiceDialog;
|
|
|
+using System.Diagnostics;
|
|
|
|
|
|
namespace PDF_Master.ViewModels
|
|
|
{
|
|
@@ -140,7 +141,19 @@ namespace PDF_Master.ViewModels
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// UpgradeVis按钮只在订阅期中显示
|
|
|
+ /// </summary>
|
|
|
+ private Visibility _UpgradeVis = Visibility.Visible;
|
|
|
|
|
|
+ public Visibility UpgradeVis
|
|
|
+ {
|
|
|
+ get { return _UpgradeVis; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ SetProperty(ref _UpgradeVis, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
///提示登录高级功能
|
|
|
/// </summary>
|
|
@@ -156,7 +169,6 @@ namespace PDF_Master.ViewModels
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
private Visibility _RegisterVis = Visibility.Collapsed;
|
|
|
|
|
|
public Visibility RegisterVis
|
|
@@ -265,6 +277,8 @@ namespace PDF_Master.ViewModels
|
|
|
public DelegateCommand OpenLoginCommand { get; set; }
|
|
|
public DelegateCommand OpenUserCommand { get; set; }
|
|
|
public DelegateCommand LoadCommand { get; set; }
|
|
|
+ public DelegateCommand UpgradelinkCommand { get; set; }
|
|
|
+
|
|
|
|
|
|
public IRegionManager region;
|
|
|
|
|
@@ -298,6 +312,7 @@ namespace PDF_Master.ViewModels
|
|
|
OpenRegisterCommand = new DelegateCommand(OpenRegister);
|
|
|
OpenLoginCommand = new DelegateCommand(OpenLogin);
|
|
|
OpenUserCommand = new DelegateCommand(OpenUser);
|
|
|
+ UpgradelinkCommand= new DelegateCommand(Upgradelink);
|
|
|
CloseAllTabCommand = new DelegateCommand(() =>
|
|
|
{
|
|
|
if (closeAllTabItem())
|
|
@@ -391,6 +406,12 @@ namespace PDF_Master.ViewModels
|
|
|
InitString();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ private void Upgradelink()
|
|
|
+ {
|
|
|
+ Process.Start(new ProcessStartInfo("http://test-pdf-pro.kdan.cn:3021/master/checkout?email="+Settings.Default.UserDate.Email));
|
|
|
+ }
|
|
|
//显示新手引导弹窗
|
|
|
private bool ShowGuidDialog()
|
|
|
{
|