|
@@ -71,6 +71,16 @@ namespace PDF_Office
|
|
{
|
|
{
|
|
public static string CurrentPath = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "PDF Office");
|
|
public static string CurrentPath = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "PDF Office");
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 内嵌文档路径
|
|
|
|
+ /// </summary>
|
|
|
|
+ public static string GuidPDFPath = Path.Combine(Environment.CurrentDirectory, "Resources//GuidPDF//Quick Start Guide.pdf");
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 是否需要更新内嵌文档
|
|
|
|
+ /// </summary>
|
|
|
|
+ public static bool IsGuidPDFUpdated = false;
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 产品名称
|
|
/// 产品名称
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -130,8 +140,18 @@ namespace PDF_Office
|
|
|
|
|
|
private void InitSettings()
|
|
private void InitSettings()
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+ //是否是更新后
|
|
if (Settings.Default.UpdateSettings)
|
|
if (Settings.Default.UpdateSettings)
|
|
{
|
|
{
|
|
|
|
+ //内嵌文档更新时 显示文档到最前方
|
|
|
|
+ //每次版本更新留意检查IsGuidPDFUpdated 值,如果没有内嵌文档更新,要设为false
|
|
|
|
+ if (Settings.Default.IsGuidPDFUpdated && File.Exists(GuidPDFPath))
|
|
|
|
+ {
|
|
|
|
+ App.IsGuidPDFUpdated = true;
|
|
|
|
+ Settings.Default.IsGuidPDFUpdated = false;
|
|
|
|
+ }
|
|
|
|
+
|
|
Settings.Default.Upgrade();
|
|
Settings.Default.Upgrade();
|
|
Settings.Default.UpdateSettings = false;
|
|
Settings.Default.UpdateSettings = false;
|
|
App.IsShowRegist = true;
|
|
App.IsShowRegist = true;
|
|
@@ -139,7 +159,9 @@ namespace PDF_Office
|
|
}
|
|
}
|
|
|
|
|
|
if (Settings.Default.RecentOpenFiles == null)
|
|
if (Settings.Default.RecentOpenFiles == null)
|
|
|
|
+ {
|
|
Settings.Default.RecentOpenFiles = new RecentOpenFiles();
|
|
Settings.Default.RecentOpenFiles = new RecentOpenFiles();
|
|
|
|
+ }
|
|
|
|
|
|
if (Settings.Default.RedactionsSettings == null)
|
|
if (Settings.Default.RedactionsSettings == null)
|
|
Settings.Default.RedactionsSettings = new PDFSettings.RedactionSettings();
|
|
Settings.Default.RedactionsSettings = new PDFSettings.RedactionSettings();
|
|
@@ -152,6 +174,11 @@ namespace PDF_Office
|
|
|
|
|
|
if (Settings.Default.QuickPDFToolsList == null)
|
|
if (Settings.Default.QuickPDFToolsList == null)
|
|
Settings.Default.QuickPDFToolsList = new PDFSettings.QuickPDFToolsList();
|
|
Settings.Default.QuickPDFToolsList = new PDFSettings.QuickPDFToolsList();
|
|
|
|
+
|
|
|
|
+ if(App.IsGuidPDFUpdated)
|
|
|
|
+ {
|
|
|
|
+ SettingHelper.SortRecentOpenFiles(GuidPDFPath);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
protected override void OnStartup(StartupEventArgs e)
|