Pārlūkot izejas kodu

Merge branch 'dev' of http://git.kdan.cc:8865/Windows/PDFOffice_Windows_exe into dev

lvle 1 gadu atpakaļ
vecāks
revīzija
05daf1fec7
100 mainītis faili ar 1464 papildinājumiem un 304 dzēšanām
  1. 2 2
      PDF Office/App.xaml.cs
  2. BIN
      PDF Office/ComPDFKit.Viewer.dll
  3. 1 1
      PDF Office/CustomControl/ColorDropBox.xaml.cs
  4. 1 1
      PDF Office/CustomControl/CompositeControl/SlidContent.xaml.cs
  5. 0 3
      PDF Office/CustomControl/MessageBoxEx.cs
  6. 1 1
      PDF Office/CustomControl/WritableComboBox.xaml.cs
  7. 1 1
      PDF Office/DataConvert/GroupHeaderConverter.cs
  8. 0 3
      PDF Office/EventAggregators/ScanEvent.cs
  9. 3 3
      PDF Office/Helper/ADServiceHelper.cs
  10. 6 4
      PDF Office/Helper/ChatGTPAIHelper.cs
  11. 9 9
      PDF Office/Helper/ConverterHelper.cs
  12. 1 1
      PDF Office/Helper/EditToolsHelper.cs
  13. 1 1
      PDF Office/Helper/PictureConverter.cs
  14. 1 1
      PDF Office/Helper/PopControlHelper.cs
  15. 0 1
      PDF Office/Helper/SettingHelper.cs
  16. 0 7
      PDF Office/Helper/ToolMethod.cs
  17. 1 1
      PDF Office/Helper/Win32Helper.cs
  18. 204 0
      PDF Office/MultilingualResources/PDF Office.en.xlf
  19. 204 0
      PDF Office/MultilingualResources/PDF Office.zh-Hans.xlf
  20. 204 0
      PDF Office/MultilingualResources/PDF Office.zh-Hant.xlf
  21. 9 0
      PDF Office/Strings/HomePage/HomePage.Designer.cs
  22. 3 0
      PDF Office/Strings/HomePage/HomePage.resx
  23. 379 1
      PDF Office/Strings/MainPage/MainPage.Designer.cs
  24. 158 0
      PDF Office/Strings/MainPage/MainPage.resx
  25. 3 3
      PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs
  26. 0 5
      PDF Office/ViewModels/BottomToolContentViewModel.cs
  27. 3 1
      PDF Office/ViewModels/Dialog/ChatGPTAIDialogs/SelectedTranslationDialogViewModel.cs
  28. 1 1
      PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterProgressBarDialogViewModel.cs
  29. 1 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/CreateFromScannerDialogsViewModel.cs
  30. 0 7
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundCreateColorContentViewModel.cs
  31. 0 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundCreateFileContentViewModel.cs
  32. 0 2
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundDialogViewModel.cs
  33. 0 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundTemplateListBaseContentViewModel.cs
  34. 1 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBatchProcessingDialogViewModel.cs
  35. 0 3
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBates/HomePageBatesDialogViewModel.cs
  36. 0 2
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageConverter/HomePageConverterDialogViewModel.cs
  37. 0 3
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageHeaderFooter/HomePageHeaderFooterDialogViewModel.cs
  38. 0 2
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageRemoveDialogViewModel.cs
  39. 0 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkDialogViewModel.cs
  40. 0 1
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePagePrinter/HomePagePrinterDialogViewModel.cs
  41. 2 4
      PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePagePrinter/HomePagePrinterDocumentContentViewModel.cs
  42. 8 8
      PDF Office/ViewModels/Dialog/PageEditDialogs/InsertDialogViewModel.cs
  43. 1 1
      PDF Office/ViewModels/Dialog/PropertiesDialogViewModel.cs
  44. 0 19
      PDF Office/ViewModels/Dialog/Redaction/MarkSettingDialogViewModel.cs
  45. 0 1
      PDF Office/ViewModels/Dialog/ServiceDialog/SubscriptionDialogViewModel.cs
  46. 1 1
      PDF Office/ViewModels/Dialog/ServiceDialog/SubscriptionOKDialogViewModel.cs
  47. 1 0
      PDF Office/ViewModels/Dialog/SettingsDialogViewModel.cs
  48. 0 1
      PDF Office/ViewModels/Dialog/ToolsDialogs/SaftyDialogs/DeleteSafetySettingsDialogViewModel.cs
  49. 0 3
      PDF Office/ViewModels/EditTools/Background/BackgroundCreateColorContentViewModel.cs
  50. 0 1
      PDF Office/ViewModels/EditTools/Background/BackgroundTemplateListBaseContentViewModel.cs
  51. 0 1
      PDF Office/ViewModels/EditTools/Bates/BatesTemplateListContentViewModel.cs
  52. 0 5
      PDF Office/ViewModels/EditTools/HeaderFooter/HeaderFooterCreateContentViewModel.cs
  53. 2 1
      PDF Office/ViewModels/Form/ButtonPropertyViewModel.cs
  54. 2 1
      PDF Office/ViewModels/Form/CheckBoxPropertyViewModel.cs
  55. 2 1
      PDF Office/ViewModels/Form/ComboxPropertyViewModel.cs
  56. 1 1
      PDF Office/ViewModels/Form/EditPresetColorsDialogViewModel.cs
  57. 2 1
      PDF Office/ViewModels/Form/ListBoxPropertyViewModel.cs
  58. 2 1
      PDF Office/ViewModels/Form/RadioButtonPropertyViewModel.cs
  59. 2 1
      PDF Office/ViewModels/Form/SignPropertyViewModel.cs
  60. 2 2
      PDF Office/ViewModels/HomeContentViewModel.cs
  61. 4 4
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveManager.cs
  62. 2 2
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/DropbBoxManager.cs
  63. 2 2
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/DropbBoxUserItem.cs
  64. 14 13
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/GoogleDriveManager.cs
  65. 9 10
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/GoogleDriveUserItem.cs
  66. 1 1
      PDF Office/ViewModels/HomePanel/CloudDrive/CloudFilesContentViewModel.cs
  67. 3 3
      PDF Office/ViewModels/HomePanel/PDFTools/HomeFilesContentViewModel.cs
  68. 1 1
      PDF Office/ViewModels/HomePanel/RecentFiles/RecentFilesContentViewModel.cs
  69. 1 1
      PDF Office/ViewModels/MainContentViewModel.cs
  70. 0 1
      PDF Office/ViewModels/MainWindowViewModel.cs
  71. 136 14
      PDF Office/ViewModels/PageEdit/PageEditContentViewModel.cs
  72. 1 2
      PDF Office/ViewModels/PropertyPanel/AnnotPanel/LinkAnnotPropertyViewModel.cs
  73. 0 2
      PDF Office/ViewModels/PropertyPanel/AnnotPanel/SharpsAnnotPropertyViewModel.cs
  74. 2 2
      PDF Office/ViewModels/PropertyPanel/AnnotPanel/SnapshotEditMenuViewModel.cs
  75. 1 3
      PDF Office/ViewModels/PropertyPanel/AnnotPanel/StickyNotePropertyViewModel.cs
  76. 1 1
      PDF Office/ViewModels/PropertyPanel/PDFEdit/ImageEditPropertyViewModel.cs
  77. 3 3
      PDF Office/ViewModels/PropertyPanel/Scan/ScanPropertyPanelViewModel.cs
  78. 0 3
      PDF Office/ViewModels/PropertyPanel/ViewModular/ViewModularContentViewModel.cs
  79. 1 3
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Command.cs
  80. 1 1
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Function.cs
  81. 1 1
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Layout.cs
  82. 0 3
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Properties.cs
  83. 1 1
      PDF Office/ViewModels/Tools/AnnotToolContentViewModel.cs
  84. 0 5
      PDF Office/ViewModels/Tools/ConverterBarContentViewModel.cs
  85. 2 2
      PDF Office/ViewModels/Tools/ScanContentViewModel.cs
  86. 0 10
      PDF Office/ViewModels/Tools/ToolsBarContentViewModel.cs
  87. 13 19
      PDF Office/ViewModels/ViewContentViewModel.cs
  88. 1 1
      PDF Office/Views/BOTA/AnnotationContent.xaml.cs
  89. 1 1
      PDF Office/Views/Dialog/AboutDialog.xaml.cs
  90. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundDialog.xaml.cs
  91. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBates/HomePageBatesDialog.xaml.cs
  92. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageCompressDialog.xaml.cs
  93. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageConverter/HomePageConverterDialog.xaml.cs
  94. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageHeaderFooter/HomePageHeaderFooterDialog.xaml.cs
  95. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageRemoveDialog.xaml.cs
  96. 4 24
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageSetPasswordDialog.xaml.cs
  97. 4 4
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkDialog.xaml.cs
  98. 0 1
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkTemplateListFileContent.xaml.cs
  99. 4 6
      PDF Office/Views/Dialog/HomePageToolsDialogs/HomePagePictureToPDFDialog.xaml.cs
  100. 0 0
      PDF Office/Views/Dialog/PageEditDialogs/ExtractDialog.xaml

+ 2 - 2
PDF Office/App.xaml.cs

@@ -294,7 +294,7 @@ namespace PDF_Master
                                     Win32Helper.CloseHandle(mapHandle);
                                     Win32Helper.CloseHandle(mapHandle);
                                 }
                                 }
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
 
 
                             }
                             }
@@ -374,7 +374,7 @@ namespace PDF_Master
                 }
                 }
 
 
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
             }
             }
 
 

BIN
PDF Office/ComPDFKit.Viewer.dll


+ 1 - 1
PDF Office/CustomControl/ColorDropBox.xaml.cs

@@ -189,7 +189,7 @@ namespace PDF_Master.CustomControl
                                 }
                                 }
                                 RemoveFromLayer();
                                 RemoveFromLayer();
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
                             }
                             }
                         }
                         }

+ 1 - 1
PDF Office/CustomControl/CompositeControl/SlidContent.xaml.cs

@@ -189,7 +189,7 @@ namespace PDF_Master.CustomControl.CompositeControl
 
 
                                 RemoveFromLayer();
                                 RemoveFromLayer();
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
 
 
                             }
                             }

+ 0 - 3
PDF Office/CustomControl/MessageBoxEx.cs

@@ -497,9 +497,6 @@ hInstance, int threadID);//设置挂钩
                 // set window handles of messagebox
                 // set window handles of messagebox
                 hChildWnd = wparam;
                 hChildWnd = wparam;
                 //to get the text of yes button
                 //to get the text of yes button
-                int result;
-
-                int count = 0;
                 for(int i=0;i<21;i++)
                 for(int i=0;i<21;i++)
                 {
                 {
                     if (GetDlgItem(hChildWnd, i) != 0)
                     if (GetDlgItem(hChildWnd, i) != 0)

+ 1 - 1
PDF Office/CustomControl/WritableComboBox.xaml.cs

@@ -375,7 +375,7 @@ namespace PDF_Master.CustomControl
             {
             {
                 AlertsMessage alertsMessage = new AlertsMessage();
                 AlertsMessage alertsMessage = new AlertsMessage();
                 //alertsMessage.ShowDialog($"Value must be between 1 and {MaxPageRange}", App.MainPageLoader.GetString("PageRangeWarning"), App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
                 //alertsMessage.ShowDialog($"Value must be between 1 and {MaxPageRange}", App.MainPageLoader.GetString("PageRangeWarning"), App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
-                alertsMessage.ShowDialog($"Value must be between 1 and {MaxPageRange}", "Values cannot exceed the page range.", App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
+                alertsMessage.ShowDialog($"{App.MainPageLoader.GetString("PageEdit_SplitErrorTile")}{MaxPageRange}", $"{App.MainPageLoader.GetString("PageEdit_SplitErrorContent")}", App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
                 ErrorBorder.Visibility = Visibility.Visible;
                 ErrorBorder.Visibility = Visibility.Visible;
                 writableTextBox.Text = "";
                 writableTextBox.Text = "";
             }
             }

+ 1 - 1
PDF Office/DataConvert/GroupHeaderConverter.cs

@@ -33,7 +33,7 @@ namespace PDF_Master.DataConvert
                         return page + ((int)value + 1).ToString();
                         return page + ((int)value + 1).ToString();
                     }
                     }
                 }
                 }
-                catch (Exception ex)
+                catch
                 {
                 {
                     return null;
                     return null;
                 }
                 }

+ 0 - 3
PDF Office/EventAggregators/ScanEvent.cs

@@ -97,16 +97,13 @@ namespace PDF_Master.EventAggregators
     }
     }
     class a : ComPDFKitViewer.IHistory
     class a : ComPDFKitViewer.IHistory
     {
     {
-        List<int> x;
         public bool Redo()
         public bool Redo()
         {
         {
-            x.Add(1);
             return true;
             return true;
         }
         }
 
 
         public bool Undo()
         public bool Undo()
         {
         {
-            x.Remove(1);
             return true;
             return true;
         }
         }
     }
     }

+ 3 - 3
PDF Office/Helper/ADServiceHelper.cs

@@ -411,13 +411,13 @@ namespace PDF_Master.Helper
                 }
                 }
                
                
             }
             }
-            catch (System.Net.WebException e)
+            catch (System.Net.WebException)
             {
             {
 
 
-                    return "404";
+                 return "404";
 
 
             }
             }
-            catch(Exception e)
+            catch(Exception)
             {
             {
                 return "0000";
                 return "0000";
             }
             }

+ 6 - 4
PDF Office/Helper/ChatGTPAIHelper.cs

@@ -67,7 +67,7 @@ namespace PDF_Master.Helper
 
 
         #region AI服务器对接接口
         #region AI服务器对接接口
         /// <summary>
         /// <summary>
-        /// 获取文件Key用来发送给服务端获取翻译文件
+        /// 获取
         /// </summary>
         /// </summary>
         /// <param name="content"></param>
         /// <param name="content"></param>
         /// <param name="filename"></param>
         /// <param name="filename"></param>
@@ -217,7 +217,8 @@ namespace PDF_Master.Helper
             string Code = "300";
             string Code = "300";
             intProcess(isprocess, "Translating", System.Windows.Visibility.Visible);
             intProcess(isprocess, "Translating", System.Windows.Visibility.Visible);
             //判断word文档大小
             //判断word文档大小
-            if (!GetDocumentPagesWord(content)) {
+            if (!GetDocumentPagesWord(content))
+            {
                 clossProcess();
                 clossProcess();
                 return "05011";
                 return "05011";
             }
             }
@@ -612,7 +613,7 @@ namespace PDF_Master.Helper
             try
             try
             {
             {
                 FileInfo fileInfo = new FileInfo(filepath);
                 FileInfo fileInfo = new FileInfo(filepath);
-                if (fileInfo.Extension.ToLower()!=".pdf")
+                if (fileInfo.Extension.ToLower() != ".pdf")
                 {
                 {
                     Microsoft.Office.Interop.Word.Application myWordApp = new Microsoft.Office.Interop.Word.Application();
                     Microsoft.Office.Interop.Word.Application myWordApp = new Microsoft.Office.Interop.Word.Application();
                     object Nothing = System.Reflection.Missing.Value;
                     object Nothing = System.Reflection.Missing.Value;
@@ -791,7 +792,7 @@ namespace PDF_Master.Helper
 
 
         public static string GetBaiduTranslationCode(string code)
         public static string GetBaiduTranslationCode(string code)
         {
         {
-
+            if (code == "300" || code == "401") { return App.HomePageLoader.GetString("ChatGTPNetworkError"); }
             if (!String.IsNullOrEmpty(App.HomePageLoader.GetString("BaiduTranslation" + code)))
             if (!String.IsNullOrEmpty(App.HomePageLoader.GetString("BaiduTranslation" + code)))
             {
             {
                 return App.HomePageLoader.GetString("BaiduTranslation" + code);
                 return App.HomePageLoader.GetString("BaiduTranslation" + code);
@@ -801,6 +802,7 @@ namespace PDF_Master.Helper
 
 
         public static string GetChatGPTCode(string code)
         public static string GetChatGPTCode(string code)
         {
         {
+            if (code == "300" || code == "401") { return App.HomePageLoader.GetString("ChatGTPNetworkError"); }
             if (!String.IsNullOrEmpty(App.HomePageLoader.GetString("ChatGTP" + code)))
             if (!String.IsNullOrEmpty(App.HomePageLoader.GetString("ChatGTP" + code)))
             {
             {
                 return App.HomePageLoader.GetString("ChatGTP" + code);
                 return App.HomePageLoader.GetString("ChatGTP" + code);

+ 9 - 9
PDF Office/Helper/ConverterHelper.cs

@@ -51,7 +51,7 @@ namespace PDF_Master.Helper
                 }
                 }
             }
             }
 
 
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -81,7 +81,7 @@ namespace PDF_Master.Helper
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -116,7 +116,7 @@ namespace PDF_Master.Helper
 
 
 
 
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -198,7 +198,7 @@ namespace PDF_Master.Helper
 
 
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -226,7 +226,7 @@ namespace PDF_Master.Helper
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -366,7 +366,7 @@ namespace PDF_Master.Helper
                     CommonHelper.ShowFileBrowser(FileName.Replace("/", "\\"));
                     CommonHelper.ShowFileBrowser(FileName.Replace("/", "\\"));
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -392,7 +392,7 @@ namespace PDF_Master.Helper
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -419,7 +419,7 @@ namespace PDF_Master.Helper
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -579,7 +579,7 @@ namespace PDF_Master.Helper
                     {
                     {
                         workbook = excele.Workbooks.Open(sourcepath);
                         workbook = excele.Workbooks.Open(sourcepath);
                     }
                     }
-                    catch (Exception e)
+                    catch
                     {
                     {
                         workbook = excele.Workbooks.Open(sourcepath, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "t", false, false, 0, true, 1, Microsoft.Office.Interop.Excel.XlCorruptLoad.xlRepairFile);
                         workbook = excele.Workbooks.Open(sourcepath, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "t", false, false, 0, true, 1, Microsoft.Office.Interop.Excel.XlCorruptLoad.xlRepairFile);
                     }
                     }

+ 1 - 1
PDF Office/Helper/EditToolsHelper.cs

@@ -116,7 +116,7 @@ namespace PDF_Master.Helper
                 strParse += int.Parse(strTemp) - 1;
                 strParse += int.Parse(strTemp) - 1;
                 return strParse;
                 return strParse;
             }
             }
-            catch (Exception e)
+            catch
             {
             {
                 return " ";
                 return " ";
             }
             }

+ 1 - 1
PDF Office/Helper/PictureConverter.cs

@@ -186,7 +186,7 @@ namespace PDF_Master.Helper
                 return null;
                 return null;
                 #endregion
                 #endregion
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
                 width = 0;
                 width = 0;
                 height = 0;
                 height = 0;

+ 1 - 1
PDF Office/Helper/PopControlHelper.cs

@@ -159,7 +159,7 @@ namespace PDF_Master.Helper
                                     RemoveFromLayer();
                                     RemoveFromLayer();
                                 }
                                 }
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
 
 
                             }
                             }

+ 0 - 1
PDF Office/Helper/SettingHelper.cs

@@ -1,6 +1,5 @@
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.AnnotEvent;
 using PDFSettings;
 using PDFSettings;
-using PDFSettings;
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Security.Cryptography;
 using System.Security.Cryptography;

+ 0 - 7
PDF Office/Helper/ToolMethod.cs

@@ -83,13 +83,6 @@ namespace PDF_Master.Helper
 
 
         public static void SetFileThumbImg(string fileName)
         public static void SetFileThumbImg(string fileName)
         {
         {
-
-            bool isNewDocument = false;
-            //检查是否是新文档
-            OpenFileInfo isnew = SettingHelper.GetFileInfo(fileName);
-            if (isnew == null)
-                isNewDocument = true;
-
             //检查是否是加密文档  要在open前检查
             //检查是否是加密文档  要在open前检查
             bool isLockedfile = false;
             bool isLockedfile = false;
             CPDFDocument tempdoc = CPDFDocument.InitWithFilePath(fileName);
             CPDFDocument tempdoc = CPDFDocument.InitWithFilePath(fileName);

+ 1 - 1
PDF Office/Helper/Win32Helper.cs

@@ -259,7 +259,7 @@ namespace PDF_Master.Helper
                 return true;
                 return true;
 
 
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 204 - 0
PDF Office/MultilingualResources/PDF Office.en.xlf

@@ -1130,6 +1130,10 @@ per month.</target>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="ChatGTPNetworkError" translate="yes" xml:space="preserve">
+          <source>Network error</source>
+          <target state="new">Network error</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>
@@ -3218,6 +3222,206 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Page</source>
           <source>Page</source>
           <target state="new">Page</target>
           <target state="new">Page</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
+          <source>Current Page</source>
+          <target state="new">Current Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Customize" translate="yes" xml:space="preserve">
+          <source>Customize</source>
+          <target state="new">Customize</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
+          <source>Extract</source>
+          <target state="new">Extract</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractDel" translate="yes" xml:space="preserve">
+          <source>Delete page after extraction</source>
+          <target state="new">Delete page after extraction</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取后删除页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractPage" translate="yes" xml:space="preserve">
+          <source>Extract Page</source>
+          <target state="new">Extract Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-提取-弹窗 提取页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractTip" translate="yes" xml:space="preserve">
+          <source>Extract each page in a separate file</source>
+          <target state="new">Extract each page in a separate file</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">每个页面作为一个单独页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Insert" translate="yes" xml:space="preserve">
+          <source>Insert</source>
+          <target state="new">Insert</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaBlankPage" translate="yes" xml:space="preserve">
+          <source>Insert a Blank Page</source>
+          <target state="new">Insert a Blank Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入空白页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaCustomPage" translate="yes" xml:space="preserve">
+          <source>Insert a Custom Page</source>
+          <target state="new">Insert a Custom Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入自定义页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertFile" translate="yes" xml:space="preserve">
+          <source>Insert File</source>
+          <target state="new">Insert File</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_OddPages" translate="yes" xml:space="preserve">
+          <source>Odd Pages</source>
+          <target state="new">Odd Pages</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">奇数页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_PageSize" translate="yes" xml:space="preserve">
+          <source>Page Size</source>
+          <target state="new">Page Size</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Replace" translate="yes" xml:space="preserve">
+          <source>Replace</source>
+          <target state="new">Replace</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">替换</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Split" translate="yes" xml:space="preserve">
+          <source>Split</source>
+          <target state="new">Split</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
+          <source>Split by page range</source>
+          <target state="new">Split by page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">按页面范围拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitMethod" translate="yes" xml:space="preserve">
+          <source>Split Method</source>
+          <target state="new">Split Method</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分方式</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitPage" translate="yes" xml:space="preserve">
+          <source>Split Page</source>
+          <target state="new">Split Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Standard" translate="yes" xml:space="preserve">
+          <source>Standard</source>
+          <target state="new">Standard</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SuperB" translate="yes" xml:space="preserve">
+          <source>Super B/A3 (330*483mm)</source>
+          <target state="new">Super B/A3 (330*483mm)</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
+          <source>Cancel</source>
+          <target state="new">Cancel</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_CustomRange" translate="yes" xml:space="preserve">
+          <source>Custom Range</source>
+          <target state="new">Custom Range</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_EvenPages" translate="yes" xml:space="preserve">
+          <source>Even Pages</source>
+          <target state="new">Even Pages</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertPage" translate="yes" xml:space="preserve">
+          <source>Insert Page</source>
+          <target state="new">Insert Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-【右键菜单】插入页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Reverse" translate="yes" xml:space="preserve">
+          <source>Reverse</source>
+          <target state="new">Reverse</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">倒序</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ShowOriginalFileNameInFront" translate="yes" xml:space="preserve">
+          <source>Show original file name in front</source>
+          <target state="new">Show original file name in front</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-将原始文档名前置</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorContent" translate="yes" xml:space="preserve">
+          <source>Out of page range</source>
+          <target state="new">Out of page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
+          <source>File Name</source>
+          <target state="new">File Name</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitLabel" translate="yes" xml:space="preserve">
+          <source>Label</source>
+          <target state="new">Label</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-标签</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitSeparator" translate="yes" xml:space="preserve">
+          <source>Separator</source>
+          <target state="new">Separator</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-分隔符</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ReplacePage" translate="yes" xml:space="preserve">
+          <source>Replace Page</source>
+          <target state="new">Replace Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>

+ 204 - 0
PDF Office/MultilingualResources/PDF Office.zh-Hans.xlf

@@ -1130,6 +1130,10 @@ per month.</target>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="ChatGTPNetworkError" translate="yes" xml:space="preserve">
+          <source>Network error</source>
+          <target state="new">Network error</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>
@@ -3218,6 +3222,206 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Page</source>
           <source>Page</source>
           <target state="new">Page</target>
           <target state="new">Page</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
+          <source>Current Page</source>
+          <target state="new">Current Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Customize" translate="yes" xml:space="preserve">
+          <source>Customize</source>
+          <target state="new">Customize</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
+          <source>Extract</source>
+          <target state="new">Extract</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractDel" translate="yes" xml:space="preserve">
+          <source>Delete page after extraction</source>
+          <target state="new">Delete page after extraction</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取后删除页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractPage" translate="yes" xml:space="preserve">
+          <source>Extract Page</source>
+          <target state="new">Extract Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-提取-弹窗 提取页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractTip" translate="yes" xml:space="preserve">
+          <source>Extract each page in a separate file</source>
+          <target state="new">Extract each page in a separate file</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">每个页面作为一个单独页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Insert" translate="yes" xml:space="preserve">
+          <source>Insert</source>
+          <target state="new">Insert</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaBlankPage" translate="yes" xml:space="preserve">
+          <source>Insert a Blank Page</source>
+          <target state="new">Insert a Blank Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入空白页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaCustomPage" translate="yes" xml:space="preserve">
+          <source>Insert a Custom Page</source>
+          <target state="new">Insert a Custom Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入自定义页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertFile" translate="yes" xml:space="preserve">
+          <source>Insert File</source>
+          <target state="new">Insert File</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_OddPages" translate="yes" xml:space="preserve">
+          <source>Odd Pages</source>
+          <target state="new">Odd Pages</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">奇数页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_PageSize" translate="yes" xml:space="preserve">
+          <source>Page Size</source>
+          <target state="new">Page Size</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Replace" translate="yes" xml:space="preserve">
+          <source>Replace</source>
+          <target state="new">Replace</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">替换</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Split" translate="yes" xml:space="preserve">
+          <source>Split</source>
+          <target state="new">Split</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
+          <source>Split by page range</source>
+          <target state="new">Split by page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">按页面范围拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitMethod" translate="yes" xml:space="preserve">
+          <source>Split Method</source>
+          <target state="new">Split Method</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分方式</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitPage" translate="yes" xml:space="preserve">
+          <source>Split Page</source>
+          <target state="new">Split Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Standard" translate="yes" xml:space="preserve">
+          <source>Standard</source>
+          <target state="new">Standard</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SuperB" translate="yes" xml:space="preserve">
+          <source>Super B/A3 (330*483mm)</source>
+          <target state="new">Super B/A3 (330*483mm)</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
+          <source>Cancel</source>
+          <target state="new">Cancel</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_CustomRange" translate="yes" xml:space="preserve">
+          <source>Custom Range</source>
+          <target state="new">Custom Range</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_EvenPages" translate="yes" xml:space="preserve">
+          <source>Even Pages</source>
+          <target state="new">Even Pages</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertPage" translate="yes" xml:space="preserve">
+          <source>Insert Page</source>
+          <target state="new">Insert Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-【右键菜单】插入页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Reverse" translate="yes" xml:space="preserve">
+          <source>Reverse</source>
+          <target state="new">Reverse</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">倒序</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ShowOriginalFileNameInFront" translate="yes" xml:space="preserve">
+          <source>Show original file name in front</source>
+          <target state="new">Show original file name in front</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-将原始文档名前置</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorContent" translate="yes" xml:space="preserve">
+          <source>Out of page range</source>
+          <target state="new">Out of page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
+          <source>File Name</source>
+          <target state="new">File Name</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitLabel" translate="yes" xml:space="preserve">
+          <source>Label</source>
+          <target state="new">Label</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-标签</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitSeparator" translate="yes" xml:space="preserve">
+          <source>Separator</source>
+          <target state="new">Separator</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-分隔符</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ReplacePage" translate="yes" xml:space="preserve">
+          <source>Replace Page</source>
+          <target state="new">Replace Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>

+ 204 - 0
PDF Office/MultilingualResources/PDF Office.zh-Hant.xlf

@@ -1130,6 +1130,10 @@ per month.</target>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <source>Limited to 150 characters per session, 5 times per month</source>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
           <target state="new">Limited to 150 characters per session, 5 times per month</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="ChatGTPNetworkError" translate="yes" xml:space="preserve">
+          <source>Network error</source>
+          <target state="new">Network error</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>
@@ -3218,6 +3222,206 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Page</source>
           <source>Page</source>
           <target state="new">Page</target>
           <target state="new">Page</target>
         </trans-unit>
         </trans-unit>
+        <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
+          <source>Current Page</source>
+          <target state="new">Current Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Customize" translate="yes" xml:space="preserve">
+          <source>Customize</source>
+          <target state="new">Customize</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
+          <source>Extract</source>
+          <target state="new">Extract</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractDel" translate="yes" xml:space="preserve">
+          <source>Delete page after extraction</source>
+          <target state="new">Delete page after extraction</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">提取后删除页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractPage" translate="yes" xml:space="preserve">
+          <source>Extract Page</source>
+          <target state="new">Extract Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-提取-弹窗 提取页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ExtractTip" translate="yes" xml:space="preserve">
+          <source>Extract each page in a separate file</source>
+          <target state="new">Extract each page in a separate file</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">每个页面作为一个单独页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Insert" translate="yes" xml:space="preserve">
+          <source>Insert</source>
+          <target state="new">Insert</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaBlankPage" translate="yes" xml:space="preserve">
+          <source>Insert a Blank Page</source>
+          <target state="new">Insert a Blank Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入空白页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertaCustomPage" translate="yes" xml:space="preserve">
+          <source>Insert a Custom Page</source>
+          <target state="new">Insert a Custom Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入自定义页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertFile" translate="yes" xml:space="preserve">
+          <source>Insert File</source>
+          <target state="new">Insert File</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-插入文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_OddPages" translate="yes" xml:space="preserve">
+          <source>Odd Pages</source>
+          <target state="new">Odd Pages</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">奇数页</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_PageSize" translate="yes" xml:space="preserve">
+          <source>Page Size</source>
+          <target state="new">Page Size</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Replace" translate="yes" xml:space="preserve">
+          <source>Replace</source>
+          <target state="new">Replace</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">替换</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Split" translate="yes" xml:space="preserve">
+          <source>Split</source>
+          <target state="new">Split</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
+          <source>Split by page range</source>
+          <target state="new">Split by page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">按页面范围拆分</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitMethod" translate="yes" xml:space="preserve">
+          <source>Split Method</source>
+          <target state="new">Split Method</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分方式</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitPage" translate="yes" xml:space="preserve">
+          <source>Split Page</source>
+          <target state="new">Split Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">拆分页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Standard" translate="yes" xml:space="preserve">
+          <source>Standard</source>
+          <target state="new">Standard</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SuperB" translate="yes" xml:space="preserve">
+          <source>Super B/A3 (330*483mm)</source>
+          <target state="new">Super B/A3 (330*483mm)</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
+          <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
+          <source>Cancel</source>
+          <target state="new">Cancel</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_CustomRange" translate="yes" xml:space="preserve">
+          <source>Custom Range</source>
+          <target state="new">Custom Range</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_EvenPages" translate="yes" xml:space="preserve">
+          <source>Even Pages</source>
+          <target state="new">Even Pages</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_InsertPage" translate="yes" xml:space="preserve">
+          <source>Insert Page</source>
+          <target state="new">Insert Page</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-【右键菜单】插入页面</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Reverse" translate="yes" xml:space="preserve">
+          <source>Reverse</source>
+          <target state="new">Reverse</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">倒序</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ShowOriginalFileNameInFront" translate="yes" xml:space="preserve">
+          <source>Show original file name in front</source>
+          <target state="new">Show original file name in front</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-将原始文档名前置</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorContent" translate="yes" xml:space="preserve">
+          <source>Out of page range</source>
+          <target state="new">Out of page range</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
+          <source>File Name</source>
+          <target state="new">File Name</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitLabel" translate="yes" xml:space="preserve">
+          <source>Label</source>
+          <target state="new">Label</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-标签</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitSeparator" translate="yes" xml:space="preserve">
+          <source>Separator</source>
+          <target state="new">Separator</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-分隔符</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_ReplacePage" translate="yes" xml:space="preserve">
+          <source>Replace Page</source>
+          <target state="new">Replace Page</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
       </group>
     </body>
     </body>
   </file>
   </file>

+ 9 - 0
PDF Office/Strings/HomePage/HomePage.Designer.cs

@@ -701,6 +701,15 @@ namespace PDF_Master.Strings.HomePage {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似 Network error 的本地化字符串。
+        /// </summary>
+        public static string ChatGTPNetworkError {
+            get {
+                return ResourceManager.GetString("ChatGTPNetworkError", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找类似 Next 的本地化字符串。
         ///   查找类似 Next 的本地化字符串。
         /// </summary>
         /// </summary>

+ 3 - 0
PDF Office/Strings/HomePage/HomePage.resx

@@ -332,6 +332,9 @@ per month.</value>
   <data name="ChatGTPLimit150" xml:space="preserve">
   <data name="ChatGTPLimit150" xml:space="preserve">
     <value>Limited to 150 characters per session, 5 times per month</value>
     <value>Limited to 150 characters per session, 5 times per month</value>
   </data>
   </data>
+  <data name="ChatGTPNetworkError" xml:space="preserve">
+    <value>Network error</value>
+  </data>
   <data name="GuidContentP1" xml:space="preserve">
   <data name="GuidContentP1" xml:space="preserve">
     <value>PDF Master Beta Invites You to Enjoy All Advanced Features!
     <value>PDF Master Beta Invites You to Enjoy All Advanced Features!
 
 

+ 379 - 1
PDF Office/Strings/MainPage/MainPage.Designer.cs

@@ -19,7 +19,7 @@ namespace PDF_Master.Strings.MainPage {
     // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
     // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
     // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
     // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
     // (以 /str 作为命令选项),或重新生成 VS 项目。
     // (以 /str 作为命令选项),或重新生成 VS 项目。
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
     public class MainPage {
     public class MainPage {
@@ -1597,6 +1597,60 @@ namespace PDF_Master.Strings.MainPage {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似 #10 Envelope  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_10Envelope {
+            get {
+                return ResourceManager.GetString("PageEdit_10Envelope", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Cancel 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Cancel {
+            get {
+                return ResourceManager.GetString("PageEdit_Cancel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Choukei #3 Envelope  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Choukei3 {
+            get {
+                return ResourceManager.GetString("PageEdit_Choukei3", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Current Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_CurrentPage {
+            get {
+                return ResourceManager.GetString("PageEdit_CurrentPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Customize 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Customize {
+            get {
+                return ResourceManager.GetString("PageEdit_Customize", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Custom Range 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_CustomRange {
+            get {
+                return ResourceManager.GetString("PageEdit_CustomRange", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找类似 Can&apos;t delete all pages. Please keep at least one page 的本地化字符串。
         ///   查找类似 Can&apos;t delete all pages. Please keep at least one page 的本地化字符串。
         /// </summary>
         /// </summary>
@@ -1606,6 +1660,60 @@ namespace PDF_Master.Strings.MainPage {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似 DL Envelope  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_DLEnvelope {
+            get {
+                return ResourceManager.GetString("PageEdit_DLEnvelope", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Even Pages 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_EvenPages {
+            get {
+                return ResourceManager.GetString("PageEdit_EvenPages", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Extract 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Extract {
+            get {
+                return ResourceManager.GetString("PageEdit_Extract", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Delete page after extraction 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_ExtractDel {
+            get {
+                return ResourceManager.GetString("PageEdit_ExtractDel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Extract Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_ExtractPage {
+            get {
+                return ResourceManager.GetString("PageEdit_ExtractPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Extract each page in a separate file 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_ExtractTip {
+            get {
+                return ResourceManager.GetString("PageEdit_ExtractTip", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找类似 Failed to complete this operation. 的本地化字符串。
         ///   查找类似 Failed to complete this operation. 的本地化字符串。
         /// </summary>
         /// </summary>
@@ -1615,6 +1723,51 @@ namespace PDF_Master.Strings.MainPage {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似 Insert 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Insert {
+            get {
+                return ResourceManager.GetString("PageEdit_Insert", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Insert a Blank Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_InsertaBlankPage {
+            get {
+                return ResourceManager.GetString("PageEdit_InsertaBlankPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Insert a Custom Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_InsertaCustomPage {
+            get {
+                return ResourceManager.GetString("PageEdit_InsertaCustomPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Insert File 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_InsertFile {
+            get {
+                return ResourceManager.GetString("PageEdit_InsertFile", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Insert Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_InsertPage {
+            get {
+                return ResourceManager.GetString("PageEdit_InsertPage", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找类似 Copy 的本地化字符串。
         ///   查找类似 Copy 的本地化字符串。
         /// </summary>
         /// </summary>
@@ -1687,6 +1840,231 @@ namespace PDF_Master.Strings.MainPage {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似 Odd Pages 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_OddPages {
+            get {
+                return ResourceManager.GetString("PageEdit_OddPages", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Page Size 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_PageSize {
+            get {
+                return ResourceManager.GetString("PageEdit_PageSize", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Replace 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Replace {
+            get {
+                return ResourceManager.GetString("PageEdit_Replace", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Replace Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_ReplacePage {
+            get {
+                return ResourceManager.GetString("PageEdit_ReplacePage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Reverse 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Reverse {
+            get {
+                return ResourceManager.GetString("PageEdit_Reverse", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Show original file name in front 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_ShowOriginalFileNameInFront {
+            get {
+                return ResourceManager.GetString("PageEdit_ShowOriginalFileNameInFront", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Split {
+            get {
+                return ResourceManager.GetString("PageEdit_Split", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split averagely to 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitAveragelyToXfiles {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitAveragelyToXfiles", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split by every 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitByEvery {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitByEvery", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split by page range 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitByPageRange {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitByPageRange", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Out of page range 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitErrorContent {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitErrorContent", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Page range must between 1 and 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitErrorTile {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitErrorTile", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 File Name 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitFileName {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitFileName", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Label 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitLabel {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split Method 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitMethod {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitMethod", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Split Page 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitPage {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Separator 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SplitSeparator {
+            get {
+                return ResourceManager.GetString("PageEdit_SplitSeparator", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Standard 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Standard {
+            get {
+                return ResourceManager.GetString("PageEdit_Standard", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Super B/A3 (330*483mm) 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_SuperB {
+            get {
+                return ResourceManager.GetString("PageEdit_SuperB", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Tabloid Paper  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_TabloidPaper {
+            get {
+                return ResourceManager.GetString("PageEdit_TabloidPaper", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 Tabloid Paper  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_TabloidPaperBig {
+            get {
+                return ResourceManager.GetString("PageEdit_TabloidPaperBig", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 U.S. Legal Paper  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_USLegalPaper {
+            get {
+                return ResourceManager.GetString("PageEdit_USLegalPaper", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 U.S. Letter Paper  的本地化字符串。
+        /// </summary>
+        public static string PageEdit_USLetterPaper {
+            get {
+                return ResourceManager.GetString("PageEdit_USLetterPaper", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 files 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Xfiles {
+            get {
+                return ResourceManager.GetString("PageEdit_Xfiles", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 page(s) 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Xpage {
+            get {
+                return ResourceManager.GetString("PageEdit_Xpage", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找类似 Invalid page range or the page number is out of range. Please try again. 的本地化字符串。
         ///   查找类似 Invalid page range or the page number is out of range. Please try again. 的本地化字符串。
         /// </summary>
         /// </summary>

+ 158 - 0
PDF Office/Strings/MainPage/MainPage.resx

@@ -675,13 +675,77 @@ You can also add files or folders via the lower left button.</value>
   <data name="Outline_Up" xml:space="preserve">
   <data name="Outline_Up" xml:space="preserve">
     <value>Promote</value>
     <value>Promote</value>
   </data>
   </data>
+  <data name="PageEdit_10Envelope" xml:space="preserve">
+    <value>#10 Envelope </value>
+    <comment>10号信封(105*241mm)</comment>
+  </data>
+  <data name="PageEdit_Cancel" xml:space="preserve">
+    <value>Cancel</value>
+  </data>
+  <data name="PageEdit_Choukei3" xml:space="preserve">
+    <value>Choukei #3 Envelope </value>
+    <comment>Choukei 3信封(120*235mm)</comment>
+  </data>
+  <data name="PageEdit_CurrentPage" xml:space="preserve">
+    <value>Current Page</value>
+  </data>
+  <data name="PageEdit_Customize" xml:space="preserve">
+    <value>Customize</value>
+    <comment>自定义</comment>
+  </data>
+  <data name="PageEdit_CustomRange" xml:space="preserve">
+    <value>Custom Range</value>
+  </data>
   <data name="PageEdit_DeleteAllPage" xml:space="preserve">
   <data name="PageEdit_DeleteAllPage" xml:space="preserve">
     <value>Can't delete all pages. Please keep at least one page</value>
     <value>Can't delete all pages. Please keep at least one page</value>
     <comment>删除全部页面时,提示文案</comment>
     <comment>删除全部页面时,提示文案</comment>
   </data>
   </data>
+  <data name="PageEdit_DLEnvelope" xml:space="preserve">
+    <value>DL Envelope </value>
+    <comment>DL信封(110*220mm)</comment>
+  </data>
+  <data name="PageEdit_EvenPages" xml:space="preserve">
+    <value>Even Pages</value>
+  </data>
+  <data name="PageEdit_Extract" xml:space="preserve">
+    <value>Extract</value>
+    <comment>提取</comment>
+  </data>
+  <data name="PageEdit_ExtractDel" xml:space="preserve">
+    <value>Delete page after extraction</value>
+    <comment>提取后删除页面</comment>
+  </data>
+  <data name="PageEdit_ExtractPage" xml:space="preserve">
+    <value>Extract Page</value>
+    <comment>页面编辑-提取-弹窗 提取页面</comment>
+  </data>
+  <data name="PageEdit_ExtractTip" xml:space="preserve">
+    <value>Extract each page in a separate file</value>
+    <comment>每个页面作为一个单独页面</comment>
+  </data>
   <data name="PageEdit_Failed" xml:space="preserve">
   <data name="PageEdit_Failed" xml:space="preserve">
     <value>Failed to complete this operation.</value>
     <value>Failed to complete this operation.</value>
   </data>
   </data>
+  <data name="PageEdit_Insert" xml:space="preserve">
+    <value>Insert</value>
+    <comment>页面编辑-插入</comment>
+  </data>
+  <data name="PageEdit_InsertaBlankPage" xml:space="preserve">
+    <value>Insert a Blank Page</value>
+    <comment>页面编辑-插入空白页</comment>
+  </data>
+  <data name="PageEdit_InsertaCustomPage" xml:space="preserve">
+    <value>Insert a Custom Page</value>
+    <comment>页面编辑-插入自定义页面</comment>
+  </data>
+  <data name="PageEdit_InsertFile" xml:space="preserve">
+    <value>Insert File</value>
+    <comment>页面编辑-插入文件</comment>
+  </data>
+  <data name="PageEdit_InsertPage" xml:space="preserve">
+    <value>Insert Page</value>
+    <comment>页面编辑-【右键菜单】插入页面</comment>
+  </data>
   <data name="PageEdit_MenuCopy" xml:space="preserve">
   <data name="PageEdit_MenuCopy" xml:space="preserve">
     <value>Copy</value>
     <value>Copy</value>
   </data>
   </data>
@@ -707,6 +771,100 @@ You can also add files or folders via the lower left button.</value>
     <value>Display Page Size</value>
     <value>Display Page Size</value>
     <comment>显示页面大小</comment>
     <comment>显示页面大小</comment>
   </data>
   </data>
+  <data name="PageEdit_OddPages" xml:space="preserve">
+    <value>Odd Pages</value>
+    <comment>奇数页</comment>
+  </data>
+  <data name="PageEdit_PageSize" xml:space="preserve">
+    <value>Page Size</value>
+  </data>
+  <data name="PageEdit_Replace" xml:space="preserve">
+    <value>Replace</value>
+    <comment>替换</comment>
+  </data>
+  <data name="PageEdit_ReplacePage" xml:space="preserve">
+    <value>Replace Page</value>
+  </data>
+  <data name="PageEdit_Reverse" xml:space="preserve">
+    <value>Reverse</value>
+    <comment>倒序</comment>
+  </data>
+  <data name="PageEdit_ShowOriginalFileNameInFront" xml:space="preserve">
+    <value>Show original file name in front</value>
+    <comment>页面编辑-拆分-弹窗-将原始文档名前置</comment>
+  </data>
+  <data name="PageEdit_Split" xml:space="preserve">
+    <value>Split</value>
+    <comment>拆分</comment>
+  </data>
+  <data name="PageEdit_SplitAveragelyToXfiles" xml:space="preserve">
+    <value>Split averagely to</value>
+    <comment>平均拆分为X个PDF文件</comment>
+  </data>
+  <data name="PageEdit_SplitByEvery" xml:space="preserve">
+    <value>Split by every</value>
+    <comment>平均每X页拆分为一个PDF文件</comment>
+  </data>
+  <data name="PageEdit_SplitByPageRange" xml:space="preserve">
+    <value>Split by page range</value>
+    <comment>按页面范围拆分</comment>
+  </data>
+  <data name="PageEdit_SplitErrorContent" xml:space="preserve">
+    <value>Out of page range</value>
+    <comment>页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</comment>
+  </data>
+  <data name="PageEdit_SplitErrorTile" xml:space="preserve">
+    <value>Page range must between 1 and</value>
+    <comment>页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</comment>
+  </data>
+  <data name="PageEdit_SplitFileName" xml:space="preserve">
+    <value>File Name</value>
+  </data>
+  <data name="PageEdit_SplitLabel" xml:space="preserve">
+    <value>Label</value>
+    <comment>页面编辑-拆分-弹窗-标签</comment>
+  </data>
+  <data name="PageEdit_SplitMethod" xml:space="preserve">
+    <value>Split Method</value>
+    <comment>拆分方式</comment>
+  </data>
+  <data name="PageEdit_SplitPage" xml:space="preserve">
+    <value>Split Page</value>
+    <comment>拆分页面</comment>
+  </data>
+  <data name="PageEdit_SplitSeparator" xml:space="preserve">
+    <value>Separator</value>
+    <comment>页面编辑-拆分-弹窗-分隔符</comment>
+  </data>
+  <data name="PageEdit_Standard" xml:space="preserve">
+    <value>Standard</value>
+  </data>
+  <data name="PageEdit_SuperB" xml:space="preserve">
+    <value>Super B/A3 (330*483mm)</value>
+    <comment>超大B/A3型(330*483mm)</comment>
+  </data>
+  <data name="PageEdit_TabloidPaper" xml:space="preserve">
+    <value>Tabloid Paper </value>
+    <comment>小报用纸(279*432mm)</comment>
+  </data>
+  <data name="PageEdit_TabloidPaperBig" xml:space="preserve">
+    <value>Tabloid Paper </value>
+    <comment>小报用纸(特大)(305*457mm)</comment>
+  </data>
+  <data name="PageEdit_USLegalPaper" xml:space="preserve">
+    <value>U.S. Legal Paper </value>
+    <comment>美国法定用纸(216*356mm)</comment>
+  </data>
+  <data name="PageEdit_USLetterPaper" xml:space="preserve">
+    <value>U.S. Letter Paper </value>
+    <comment>美国信纸(216*279mm)</comment>
+  </data>
+  <data name="PageEdit_Xfiles" xml:space="preserve">
+    <value>files</value>
+  </data>
+  <data name="PageEdit_Xpage" xml:space="preserve">
+    <value>page(s)</value>
+  </data>
   <data name="PageRangeWarning" xml:space="preserve">
   <data name="PageRangeWarning" xml:space="preserve">
     <value>Invalid page range or the page number is out of range. Please try again.</value>
     <value>Invalid page range or the page number is out of range. Please try again.</value>
     <comment>页面范围错误提示</comment>
     <comment>页面范围错误提示</comment>

+ 3 - 3
PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs

@@ -1080,7 +1080,7 @@ namespace PDF_Master.ViewModels.BOTA
             }
             }
         }
         }
 
 
-        public async void ScrollToAnnot(int pageindex, int annotindex, ListBox AnnotationList)
+        public void ScrollToAnnot(int pageindex, int annotindex, ListBox AnnotationList)
         {
         {
             //var list = PdfViewer.GetAnnotCommentList(pageindex, PdfViewer.Document);
             //var list = PdfViewer.GetAnnotCommentList(pageindex, PdfViewer.Document);
             for (int i = 0; i < AnnotationList.Items.Count; i++)
             for (int i = 0; i < AnnotationList.Items.Count; i++)
@@ -1287,7 +1287,7 @@ namespace PDF_Master.ViewModels.BOTA
             events.GetEvent<RefreshAnnotationEvent>().Publish(new RefreshAnnotationArgs() { Unicode = App.mainWindowViewModel.SelectedItem.Unicode, IsAll = false, IsDel = true, annotHandlerArgs = args });
             events.GetEvent<RefreshAnnotationEvent>().Publish(new RefreshAnnotationArgs() { Unicode = App.mainWindowViewModel.SelectedItem.Unicode, IsAll = false, IsDel = true, annotHandlerArgs = args });
         }
         }
 
 
-        private async void RefreshAnnotation(int pageIndex)
+        private void RefreshAnnotation(int pageIndex)
         {
         {
             CurrentAnnotationLists = GetDocumentAnnotionList(out HideAnnots);
             CurrentAnnotationLists = GetDocumentAnnotionList(out HideAnnots);
             AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
             AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
@@ -1517,7 +1517,7 @@ namespace PDF_Master.ViewModels.BOTA
         /// 默认按照PageIndex,分组 排序
         /// 默认按照PageIndex,分组 排序
         /// </summary>
         /// </summary>
         /// <param name="listBox"></param>
         /// <param name="listBox"></param>
-        private async void SetGroupHeader(ListBox listBox)
+        private void SetGroupHeader(ListBox listBox)
         {
         {
             if (listBox == null) { return; }
             if (listBox == null) { return; }
 
 

+ 0 - 5
PDF Office/ViewModels/BottomToolContentViewModel.cs

@@ -431,11 +431,6 @@ namespace PDF_Master.ViewModels
 
 
         private int oldPageIndex = 0;
         private int oldPageIndex = 0;
 
 
-        /// <summary>
-        /// 上下滑动的固定值
-        /// </summary>
-        private double scrolloffset = 50;
-
         private IRegionManager region;
         private IRegionManager region;
 
 
         private IDialogService dialogs;
         private IDialogService dialogs;

+ 3 - 1
PDF Office/ViewModels/Dialog/ChatGPTAIDialogs/SelectedTranslationDialogViewModel.cs

@@ -15,6 +15,7 @@ using System.Threading.Tasks;
 using System.Windows;
 using System.Windows;
 using PDF_Master.Properties;
 using PDF_Master.Properties;
 using PDF_Master.CustomControl;
 using PDF_Master.CustomControl;
+using DialogResult = Prism.Services.Dialogs.DialogResult;
 
 
 namespace PDF_Master.ViewModels.Dialog.ChatGPTAIDialogs
 namespace PDF_Master.ViewModels.Dialog.ChatGPTAIDialogs
 {
 {
@@ -334,7 +335,7 @@ namespace PDF_Master.ViewModels.Dialog.ChatGPTAIDialogs
             Value = 7;
             Value = 7;
             if (Code != "200")
             if (Code != "200")
             {
             {
-                ErrorTipText = Code;
+                ErrorTipText = ChatGTPAIHelper.GetBaiduTranslationCode(Code);
                 ErrorVisible = Visibility.Visible;
                 ErrorVisible = Visibility.Visible;
             }
             }
             Value = 9;
             Value = 9;
@@ -366,6 +367,7 @@ namespace PDF_Master.ViewModels.Dialog.ChatGPTAIDialogs
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 1 - 1
PDF Office/ViewModels/Dialog/ConverterDialogs/ConverterProgressBarDialogViewModel.cs

@@ -84,7 +84,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
 
 
         }
         }
 
 
-        public async void OnDialogOpened(IDialogParameters parameters)
+        public void OnDialogOpened(IDialogParameters parameters)
         {
         {
             #region 转档
             #region 转档
             //bool result=false;
             //bool result=false;

+ 1 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/CreateFromScannerDialogsViewModel.cs

@@ -295,7 +295,7 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs
                 }
                 }
                 return image;
                 return image;
             }
             }
-            catch (COMException ex)
+            catch (COMException)
             {
             {
                 AlertsMessage alertsMessage = new AlertsMessage();
                 AlertsMessage alertsMessage = new AlertsMessage();
                 alertsMessage.ShowDialog(App.HomePageLoader.GetString("Scanner_Error"), App.HomePageLoader.GetString("Scanner_Errorbody"), App.HomePageLoader.GetString("Scanner_Errorok"), IconType.Tip);
                 alertsMessage.ShowDialog(App.HomePageLoader.GetString("Scanner_Error"), App.HomePageLoader.GetString("Scanner_Errorbody"), App.HomePageLoader.GetString("Scanner_Errorok"), IconType.Tip);

+ 0 - 7
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundCreateColorContentViewModel.cs

@@ -23,10 +23,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
     {
     {
 
 
         IEventAggregator eventAggregator;
         IEventAggregator eventAggregator;
-        private CPDFViewer PDFViewer;
-
-        private string RedColorBtn = "RedColorBtn";
-        private string GreenColorBtn = "GreenColorBtn";
 
 
         private BackgroundItem TemplateBackgroundItem;
         private BackgroundItem TemplateBackgroundItem;
 
 
@@ -357,7 +353,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
                 //预览图缓存
                 //预览图缓存
                 string saveName = Guid.NewGuid().ToString();
                 string saveName = Guid.NewGuid().ToString();
                 string savePath = Path.Combine(folderPath, saveName);
                 string savePath = Path.Combine(folderPath, saveName);
-                System.Windows.Size pageSize =new System.Windows.Size();
                 CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                 CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                 if (tempDocument != null)
                 if (tempDocument != null)
                 {
                 {
@@ -472,7 +467,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
                     //预览图缓存
                     //预览图缓存
                     string saveName = Guid.NewGuid().ToString();
                     string saveName = Guid.NewGuid().ToString();
                     string savePath = Path.Combine(folderPath, saveName);
                     string savePath = Path.Combine(folderPath, saveName);
-                    System.Windows.Size pageSize = new System.Windows.Size();
                     CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                     CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                     if (tempDocument != null)
                     if (tempDocument != null)
                     {
                     {
@@ -548,7 +542,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         public void OnNavigatedTo(NavigationContext navigationContext)
         public void OnNavigatedTo(NavigationContext navigationContext)
         {
         {
             navigationContext.Parameters.TryGetValue<string>("Unicode", out Unicode);
             navigationContext.Parameters.TryGetValue<string>("Unicode", out Unicode);
-            navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
             //EditToolsHelper.GetPageRange(PageRangeSelectIndex, PDFViewer.Document, ref BackgroundInfo.PageRange, PageRangeText);
             //EditToolsHelper.GetPageRange(PageRangeSelectIndex, PDFViewer.Document, ref BackgroundInfo.PageRange, PageRangeText);
             if (navigationContext.Parameters.TryGetValue<BackgroundItem>("BackgroundItem", out TemplateBackgroundItem))
             if (navigationContext.Parameters.TryGetValue<BackgroundItem>("BackgroundItem", out TemplateBackgroundItem))
             {
             {

+ 0 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundCreateFileContentViewModel.cs

@@ -433,7 +433,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
                 //预览图缓存
                 //预览图缓存
                 string saveName = Guid.NewGuid().ToString();
                 string saveName = Guid.NewGuid().ToString();
                 string savePath = Path.Combine(folderPath, saveName);
                 string savePath = Path.Combine(folderPath, saveName);
-                System.Windows.Size pageSize =new System.Windows.Size() ;
                 CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                 CPDFDocument tempDocument = CPDFDocument.CreateDocument();
                 if (tempDocument != null)
                 if (tempDocument != null)
                 {
                 {

+ 0 - 2
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundDialogViewModel.cs

@@ -32,8 +32,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
 
 
         public BackgroundInfo BackgroundInfo;
         public BackgroundInfo BackgroundInfo;
 
 
-        private CPDFDocument tempDocument;
-
         public string PageNumber = "";
         public string PageNumber = "";
 
 
         private CPDFBackground background;
         private CPDFBackground background;

+ 0 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundTemplateListBaseContentViewModel.cs

@@ -16,7 +16,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         private readonly IEventAggregator eventAggregator;
         private readonly IEventAggregator eventAggregator;
         private HomePageBackgroundDialogViewModel homePageBackgroundDialogViewModel;
         private HomePageBackgroundDialogViewModel homePageBackgroundDialogViewModel;
         private string BackgroundTemplateListColorContentName = "HomePageBackgroundTemplateListColorContent";
         private string BackgroundTemplateListColorContentName = "HomePageBackgroundTemplateListColorContent";
-        private string BackgroundTemplateListFileContentName = "HomePageBackgroundTemplateListFileContent";
 
 
         public EnumColorOrFile CurrentCreateMod;
         public EnumColorOrFile CurrentCreateMod;
 
 

+ 1 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBatchProcessingDialogViewModel.cs

@@ -101,7 +101,7 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
-            
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 0 - 3
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBates/HomePageBatesDialogViewModel.cs

@@ -32,9 +32,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         #region 参数和属性
         #region 参数和属性
         private List<string> fileNames;
         private List<string> fileNames;
 
 
-
-        private CPDFDocument tempDocument;
-
         public string PageNumber = "";
         public string PageNumber = "";
 
 
         private CPDFBates bates;
         private CPDFBates bates;

+ 0 - 2
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageConverter/HomePageConverterDialogViewModel.cs

@@ -40,8 +40,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         public HomePageConverterTextModel ConverterTextModel = new HomePageConverterTextModel();
         public HomePageConverterTextModel ConverterTextModel = new HomePageConverterTextModel();
         public HomePageConverterWordModel ConverterWordModel = new HomePageConverterWordModel();
         public HomePageConverterWordModel ConverterWordModel = new HomePageConverterWordModel();
 
 
-        private CPDFDocument tempDocument;
-
         public string PageNumber = "";
         public string PageNumber = "";
 
 
         public IRegionManager ConverterRegion;
         public IRegionManager ConverterRegion;

+ 0 - 3
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageHeaderFooter/HomePageHeaderFooterDialogViewModel.cs

@@ -28,9 +28,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         #region 参数和属性
         #region 参数和属性
         private List<string> fileNames;
         private List<string> fileNames;
 
 
-
-        private CPDFDocument tempDocument;
-
         public string PageNumber = "";
         public string PageNumber = "";
 
 
         private CPDFHeaderFooter headerFooter;
         private CPDFHeaderFooter headerFooter;

+ 0 - 2
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageRemoveDialogViewModel.cs

@@ -30,8 +30,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
 
 
         private List<string> fileNames;
         private List<string> fileNames;
 
 
-        private CPDFDocument tempDocument;
-
         public List<int> fileNamesView = new List<int>();
         public List<int> fileNamesView = new List<int>();
 
 
         private int fileNamesIndex = 0;
         private int fileNamesIndex = 0;

+ 0 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkDialogViewModel.cs

@@ -29,7 +29,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcess
         #region 参数和属性
         #region 参数和属性
         private List<string> fileNames;
         private List<string> fileNames;
 
 
-        private CPDFDocument tempDocument;
 
 
         public string PageNumber = "";
         public string PageNumber = "";
 
 

+ 0 - 1
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePagePrinter/HomePagePrinterDialogViewModel.cs

@@ -1173,7 +1173,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
                 }));
                 }));
             }
             }
 
 
-            int currentPage = -1;
             if (PDFViewer != null && PDFViewer.Document != null && result.IsDiscryptied)
             if (PDFViewer != null && PDFViewer.Document != null && result.IsDiscryptied)
             {
             {
                 for (int temp = 0; temp < PDFViewer.Document.PageCount; temp++)
                 for (int temp = 0; temp < PDFViewer.Document.PageCount; temp++)

+ 2 - 4
PDF Office/ViewModels/Dialog/HomePageToolsDialogs/HomePagePrinter/HomePagePrinterDocumentContentViewModel.cs

@@ -94,7 +94,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
 
 
         #endregion
         #endregion
 
 
-        bool canOnlyOneCopy = false;
 
 
         public class DocumentSettingsInfo
         public class DocumentSettingsInfo
         {
         {
@@ -241,7 +240,6 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
         {
         {
             if (printQueueWithUnicode.printQueue != null)
             if (printQueueWithUnicode.printQueue != null)
             {
             {
-                canOnlyOneCopy = false;
                 PrintIndex = 0;
                 PrintIndex = 0;
                 this.documentPrintQueue = printQueueWithUnicode.printQueue;
                 this.documentPrintQueue = printQueueWithUnicode.printQueue;
                 var printDocument = new PrintDocument();
                 var printDocument = new PrintDocument();
@@ -1154,7 +1152,7 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
                 widthDpiRatio = (int)e.Graphics.DpiX / 100;
                 widthDpiRatio = (int)e.Graphics.DpiX / 100;
                 heightDpiRatio = (int)e.Graphics.DpiY / 100;
                 heightDpiRatio = (int)e.Graphics.DpiY / 100;
             }
             }
-            Bitmap printBitmap;
+
             Rectangle realBound = new Rectangle(documentSettingsInfo.margins.Left, documentSettingsInfo.margins.Top, e.PageBounds.Width - documentSettingsInfo.margins.Left - documentSettingsInfo.margins.Right, e.PageBounds.Height - documentSettingsInfo.margins.Top - documentSettingsInfo.margins.Bottom);
             Rectangle realBound = new Rectangle(documentSettingsInfo.margins.Left, documentSettingsInfo.margins.Top, e.PageBounds.Width - documentSettingsInfo.margins.Left - documentSettingsInfo.margins.Right, e.PageBounds.Height - documentSettingsInfo.margins.Top - documentSettingsInfo.margins.Bottom);
             double singlePageHeight;
             double singlePageHeight;
             double singlePageWidth;
             double singlePageWidth;
@@ -1850,7 +1848,7 @@ namespace PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
                 g.Dispose();
                 g.Dispose();
                 return actualBitmap;
                 return actualBitmap;
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
                 return null;
                 return null;
             }
             }

+ 8 - 8
PDF Office/ViewModels/Dialog/PageEditDialogs/InsertDialogViewModel.cs

@@ -288,16 +288,16 @@ namespace PDF_Master.ViewModels.Dialog.PageEditDialogs
              new PageSizeInfo(){ Name="A4",Width="210",Height="297",Unit="mm"},
              new PageSizeInfo(){ Name="A4",Width="210",Height="297",Unit="mm"},
              new PageSizeInfo(){ Name="A5",Width="148",Height="210",Unit="mm"},
              new PageSizeInfo(){ Name="A5",Width="148",Height="210",Unit="mm"},
              new PageSizeInfo(){ Name="B5",Width="176",Height="250",Unit="mm"},
              new PageSizeInfo(){ Name="B5",Width="176",Height="250",Unit="mm"},
-             new PageSizeInfo(){ Name="10号信封",Width="105",Height="241",Unit="mm"},
-             new PageSizeInfo(){ Name="Choukei 3信封",Width="120",Height="235",Unit="mm"},
-             new PageSizeInfo(){ Name="DL信封",Width="110",Height="220",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_10Envelope"),Width ="105",Height="241",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_Choukei3"),Width="120",Height="235",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_DLEnvelope"),Width="110",Height="220",Unit="mm"},
              new PageSizeInfo(){ Name="JIS B5",Width="182",Height="257",Unit="mm"},
              new PageSizeInfo(){ Name="JIS B5",Width="182",Height="257",Unit="mm"},
              new PageSizeInfo(){ Name="ROC 16K",Width="197",Height="273",Unit="mm"},
              new PageSizeInfo(){ Name="ROC 16K",Width="197",Height="273",Unit="mm"},
-             new PageSizeInfo(){ Name="超大B/A3型",Width="330",Height="483",Unit="mm"},
-             new PageSizeInfo(){ Name="小报用纸",Width="279",Height="432",Unit="mm"},
-             new PageSizeInfo(){ Name="小报用纸(特大)",Width="305",Height="457",Unit="mm"},
-             new PageSizeInfo(){ Name="美国法定用纸",Width="216",Height="356",Unit="mm"},
-             new PageSizeInfo(){ Name="美国信纸",Width="216",Height="279",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_SuperB"),Width="330",Height="483",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_TabloidPaper"),Width="279",Height="432",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_TabloidPaperBig"),Width="305",Height="457",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_USLegalPaper"),Width="216",Height="356",Unit="mm"},
+             new PageSizeInfo(){ Name=App.MainPageLoader.GetString("PageEdit_USLetterPaper"),Width="216",Height="279",Unit="mm"},
             };
             };
             foreach (var item in PageSizeInfos)
             foreach (var item in PageSizeInfos)
             {
             {

+ 1 - 1
PDF Office/ViewModels/Dialog/PropertiesDialogViewModel.cs

@@ -228,7 +228,7 @@ namespace PDF_Master.ViewModels.Dialog
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
-          
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 0 - 19
PDF Office/ViewModels/Dialog/Redaction/MarkSettingDialogViewModel.cs

@@ -138,28 +138,9 @@ namespace PDF_Master.ViewModels.Dialog.Redaction
             set
             set
             {
             {
                 SetProperty(ref fontFamilySelectedIndex, value);
                 SetProperty(ref fontFamilySelectedIndex, value);
-                if(value>0)
-                {
-                    switch (value)
-                    {
-                        case 0:
-                            fontFamily = "Courier";
-                            break;
-                        case 1:
-                            fontFamily = "Helvetica";
-                            break;
-                        case 2:
-                            fontFamily = "Times Roman";
-                            break;
-                        default:
-                            break;
-                    }
-                }
             }
             }
         }
         }
 
 
-        private string fontFamily = "";
-
         private int fontWeightSelectedIndex;
         private int fontWeightSelectedIndex;
 
 
         public int FontWeightSelectedIndex
         public int FontWeightSelectedIndex

+ 0 - 1
PDF Office/ViewModels/Dialog/ServiceDialog/SubscriptionDialogViewModel.cs

@@ -24,7 +24,6 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
     public class SubscriptionDialogViewModel : BindableBase, IDialogAware
     public class SubscriptionDialogViewModel : BindableBase, IDialogAware
     {
     {
         public string Title => "";
         public string Title => "";
-        private WatermarkInfo watermarkInfo;
         private ViewContentViewModel viewContentViewModel;
         private ViewContentViewModel viewContentViewModel;
         private string open;
         private string open;
         public event Action<IDialogResult> RequestClose;
         public event Action<IDialogResult> RequestClose;

+ 1 - 1
PDF Office/ViewModels/Dialog/ServiceDialog/SubscriptionOKDialogViewModel.cs

@@ -64,7 +64,7 @@ namespace PDF_Master.ViewModels.Dialog.ServiceDialog
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
-
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 1 - 0
PDF Office/ViewModels/Dialog/SettingsDialogViewModel.cs

@@ -1049,6 +1049,7 @@ namespace PDF_Master.ViewModels.Dialog
 
 
                 Win32Helper.RegisterDefaultApp(IsDefualtApp);
                 Win32Helper.RegisterDefaultApp(IsDefualtApp);
                 Settings.Default.Save();
                 Settings.Default.Save();
+                RequestClose.Invoke(new DialogResult());
             }
             }
             catch { }
             catch { }
         }
         }

+ 0 - 1
PDF Office/ViewModels/Dialog/ToolsDialogs/SaftyDialogs/DeleteSafetySettingsDialogViewModel.cs

@@ -53,7 +53,6 @@ namespace PDF_Master.ViewModels.Dialog.ToolsDialogs.SaftyDialogs
         #endregion
         #endregion
 
 
         #region 参数和属性
         #region 参数和属性
-        DeleteSafetySettintgsModel deleteSafetySettintgsModel;
         public IDialogService dialogs;
         public IDialogService dialogs;
         private CPDFDocument document;
         private CPDFDocument document;
 
 

+ 0 - 3
PDF Office/ViewModels/EditTools/Background/BackgroundCreateColorContentViewModel.cs

@@ -33,9 +33,6 @@ namespace PDF_Master.ViewModels.EditTools.Background
         IEventAggregator eventAggregator;
         IEventAggregator eventAggregator;
         private CPDFViewer PDFViewer;
         private CPDFViewer PDFViewer;
 
 
-        private string RedColorBtn = "RedColorBtn";
-        private string GreenColorBtn = "GreenColorBtn";
-
         private BackgroundItem TemplateBackgroundItem;
         private BackgroundItem TemplateBackgroundItem;
 
 
         private List<string> _rotationList = new List<string>();
         private List<string> _rotationList = new List<string>();

+ 0 - 1
PDF Office/ViewModels/EditTools/Background/BackgroundTemplateListBaseContentViewModel.cs

@@ -22,7 +22,6 @@ namespace PDF_Master.ViewModels.EditTools.Background
         private readonly IEventAggregator eventAggregator;
         private readonly IEventAggregator eventAggregator;
 
 
         private string BackgroundTemplateListColorContentName = "BackgroundTemplateListColorContent";
         private string BackgroundTemplateListColorContentName = "BackgroundTemplateListColorContent";
-        private string BackgroundTemplateListFileContentName = "BackgroundTemplateListFileContent";
 
 
         public EnumColorOrFile CurrentCreateMod;
         public EnumColorOrFile CurrentCreateMod;
 
 

+ 0 - 1
PDF Office/ViewModels/EditTools/Bates/BatesTemplateListContentViewModel.cs

@@ -4,7 +4,6 @@ using PDF_Master.EventAggregators;
 using PDF_Master.Helper;
 using PDF_Master.Helper;
 using PDF_Master.Model;
 using PDF_Master.Model;
 using PDF_Master.Model.EditTools.Bates;
 using PDF_Master.Model.EditTools.Bates;
-using PDF_Master.Model.EditTools.Bates;
 using PDF_Master.Model.EditTools.HeaderFooter;
 using PDF_Master.Model.EditTools.HeaderFooter;
 using PDF_Master.Properties;
 using PDF_Master.Properties;
 using PDFSettings;
 using PDFSettings;

+ 0 - 5
PDF Office/ViewModels/EditTools/HeaderFooter/HeaderFooterCreateContentViewModel.cs

@@ -427,11 +427,6 @@ namespace PDF_Master.ViewModels.EditTools.HeaderFooter
             set
             set
             {
             {
                 SetProperty(ref _marginRightValue, value);
                 SetProperty(ref _marginRightValue, value);
-                bool ValueEQ = true;
-                if (HeaderFooterInfo.margin[2] == float.Parse(MarginTopValue))
-                {
-                    ValueEQ = false;
-                }
                 HeaderFooterInfo.margin[2] = float.Parse(MarginRightValue);
                 HeaderFooterInfo.margin[2] = float.Parse(MarginRightValue);
                 eventAggregator.GetEvent<SetHeaderFooterEvent>().Publish(new HeaderFooterInfoUnicode
                 eventAggregator.GetEvent<SetHeaderFooterEvent>().Publish(new HeaderFooterInfoUnicode
                 {
                 {

+ 2 - 1
PDF Office/ViewModels/Form/ButtonPropertyViewModel.cs

@@ -47,8 +47,9 @@ namespace PDF_Master.ViewModels.Form
         #endregion
         #endregion
 
 
         #region 初始化
         #region 初始化
-        public ButtonPropertyViewModel()
+        public ButtonPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 2 - 1
PDF Office/ViewModels/Form/CheckBoxPropertyViewModel.cs

@@ -45,8 +45,9 @@ namespace PDF_Master.ViewModels.Form
         #endregion
         #endregion
 
 
         #region 初始化
         #region 初始化
-        public CheckBoxPropertyViewModel()
+        public CheckBoxPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 2 - 1
PDF Office/ViewModels/Form/ComboxPropertyViewModel.cs

@@ -60,8 +60,9 @@ namespace PDF_Master.ViewModels.Form
         #endregion
         #endregion
 
 
         #region 初始化
         #region 初始化
-        public ComboxPropertyViewModel()
+        public ComboxPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 1 - 1
PDF Office/ViewModels/Form/EditPresetColorsDialogViewModel.cs

@@ -58,7 +58,7 @@ namespace PDF_Master.ViewModels.Form
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
-            return;
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 2 - 1
PDF Office/ViewModels/Form/ListBoxPropertyViewModel.cs

@@ -61,8 +61,9 @@ namespace PDF_Master.ViewModels.Form
 
 
 
 
         #region 初始化
         #region 初始化
-        public ListBoxPropertyViewModel()
+        public ListBoxPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 2 - 1
PDF Office/ViewModels/Form/RadioButtonPropertyViewModel.cs

@@ -45,8 +45,9 @@ namespace PDF_Master.ViewModels.Form
 
 
 
 
         #region 初始化
         #region 初始化
-        public RadioButtonPropertyViewModel()
+        public RadioButtonPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 2 - 1
PDF Office/ViewModels/Form/SignPropertyViewModel.cs

@@ -42,8 +42,9 @@ namespace PDF_Master.ViewModels.Form
         #endregion
         #endregion
 
 
         #region 初始化
         #region 初始化
-        public SignPropertyViewModel()
+        public SignPropertyViewModel(IDialogService dialogService)
         {
         {
+            dialogs = dialogService;
             InitVariable();
             InitVariable();
             InitCommand();
             InitCommand();
         }
         }

+ 2 - 2
PDF Office/ViewModels/HomeContentViewModel.cs

@@ -331,7 +331,7 @@ namespace PDF_Master.ViewModels
         /// </summary>
         /// </summary>
         private void createFormHtml()
         private void createFormHtml()
         {
         {
-            dialog.ShowDialog(DialogNames.CreateFromHtmlDialog, async e =>
+            dialog.ShowDialog(DialogNames.CreateFromHtmlDialog, e =>
             {
             {
                 if (e.Result == ButtonResult.OK)
                 if (e.Result == ButtonResult.OK)
                 {
                 {
@@ -346,7 +346,7 @@ namespace PDF_Master.ViewModels
         /// <summary>
         /// <summary>
         /// 从扫描仪创建
         /// 从扫描仪创建
         /// </summary>
         /// </summary>
-        public async void createFromScanner(string args)
+        public void createFromScanner(string args)
         {
         {
             dialog.ShowDialog(DialogNames.CreateFromScannerDialogs, async e =>
             dialog.ShowDialog(DialogNames.CreateFromScannerDialogs, async e =>
             {
             {

+ 4 - 4
PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveManager.cs

@@ -56,7 +56,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive
             {
             {
                 case CloudType.GoogleDrive:
                 case CloudType.GoogleDrive:
                     {
                     {
-                        var list = await GoogleDrive.GetFolder(fileOperation);
+                        var list = GoogleDrive.GetFolder(fileOperation);
                         FilesList = new ObservableCollection<FilesBaseItem>();
                         FilesList = new ObservableCollection<FilesBaseItem>();
                         foreach (var item in list)
                         foreach (var item in list)
                         {
                         {
@@ -87,7 +87,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive
             switch (fileOperation.User.cloudType)
             switch (fileOperation.User.cloudType)
             {
             {
                 case CloudType.GoogleDrive:
                 case CloudType.GoogleDrive:
-                    tempPath = await GoogleDrive.DownloadGoogleFile(fileOperation, docPath);
+                    tempPath = GoogleDrive.DownloadGoogleFile(fileOperation, docPath);
                     break;
                     break;
                 case CloudType.DropBox:
                 case CloudType.DropBox:
                     tempPath = await DropbBox.DownloadFile(fileOperation, docPath);
                     tempPath = await DropbBox.DownloadFile(fileOperation, docPath);
@@ -171,7 +171,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive
                         var dropBoxUser = user as DropbBoxUserItem;
                         var dropBoxUser = user as DropbBoxUserItem;
                         if (dropBoxUser != null)
                         if (dropBoxUser != null)
                         {
                         {
-                            result = await DropbBox.RemoveUser(dropBoxUser);
+                            result = DropbBox.RemoveUser(dropBoxUser);
                         }
                         }
                     }
                     }
                     break;
                     break;
@@ -195,7 +195,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive
                         var googleUser = fileOperation.User as GoogleDriveUserItem;
                         var googleUser = fileOperation.User as GoogleDriveUserItem;
                         if (googleUser != null)
                         if (googleUser != null)
                         {
                         {
-                            result = await GoogleDrive.UpLoadFile(fileOperation);
+                            result = GoogleDrive.UpLoadFile(fileOperation);
                         }
                         }
                     }
                     }
                     break;
                     break;

+ 2 - 2
PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/DropbBoxManager.cs

@@ -38,9 +38,9 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// <summary>
         /// <summary>
         /// 移除用户
         /// 移除用户
         /// </summary>
         /// </summary>
-        public async Task<bool> RemoveUser(DropbBoxUserItem user)
+        public bool RemoveUser(DropbBoxUserItem user)
         {
         {
-            var result = await user.RemoveUser();
+            var result = user.RemoveUser();
             if(result == true)
             if(result == true)
             {
             {
                 Cloud.CloudLists.Remove(user);
                 Cloud.CloudLists.Remove(user);

+ 2 - 2
PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/DropbBoxUserItem.cs

@@ -71,7 +71,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
             return FileList;
             return FileList;
         }
         }
 
 
-        public async Task<bool> RemoveUser()
+        public bool RemoveUser()
         {
         {
             bool result = true;
             bool result = true;
             if (result == true)
             if (result == true)
@@ -112,7 +112,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
                     }
                     }
                 }
                 }
                // System.Diagnostics.Process.Start(@"explorer.exe", "/select,\"" + savePath + "\"");
                // System.Diagnostics.Process.Start(@"explorer.exe", "/select,\"" + savePath + "\"");
-                RefreshList(savePath);
+                await RefreshList(savePath);
 
 
                 return savePath;
                 return savePath;
             }
             }

+ 14 - 13
PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/GoogleDriveManager.cs

@@ -30,6 +30,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// <summary>
         /// <summary>
         /// 预留需求:获取登录过的用户
         /// 预留需求:获取登录过的用户
         /// </summary>
         /// </summary>
+        [Obsolete]
         public async Task<bool> GetHistoryUsers()
         public async Task<bool> GetHistoryUsers()
         {
         {
             var tuples = await GoogleDriveStatic.GetHistoryService();
             var tuples = await GoogleDriveStatic.GetHistoryService();
@@ -50,7 +51,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
             return false;
             return false;
         }
         }
 
 
-        public async void AddGoogleDriveUser(Tuple<DriveService, UserCredential> tuple)
+        public void AddGoogleDriveUser(Tuple<DriveService, UserCredential> tuple)
         {
         {
             GoogleDriveUserItem userItem = new GoogleDriveUserItem();
             GoogleDriveUserItem userItem = new GoogleDriveUserItem();
             userItem.Service = tuple.Item1;
             userItem.Service = tuple.Item1;
@@ -58,7 +59,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
             userItem.cloudType = CloudType.GoogleDrive;
             userItem.cloudType = CloudType.GoogleDrive;
 
 
             UserInfo user = new UserInfo();
             UserInfo user = new UserInfo();
-            user = await userItem.GetUserAcountAsync();
+            user =  userItem.GetUserAcountAsync();
             userItem.userInfo = user;
             userItem.userInfo = user;
 
 
             Cloud.CloudLists.Add(userItem);
             Cloud.CloudLists.Add(userItem);
@@ -71,13 +72,13 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
             if (tuple != null)
             if (tuple != null)
             {
             {
                 result = true;
                 result = true;
-                await GetUserInfo(tuple);//此处不可用异步处理,否则导致的结果是没法刷新集合呈现在UI上
+                GetUserInfo(tuple);//此处不可用异步处理,否则导致的结果是没法刷新集合呈现在UI上
             }
             }
 
 
             return result;
             return result;
         }
         }
 
 
-        public async Task<bool> GetUserInfo(Tuple<DriveService, UserCredential> tuple)
+        public bool GetUserInfo(Tuple<DriveService, UserCredential> tuple)
         {
         {
             GoogleDriveUserItem userItem = new GoogleDriveUserItem();
             GoogleDriveUserItem userItem = new GoogleDriveUserItem();
             userItem.Service = tuple.Item1;
             userItem.Service = tuple.Item1;
@@ -85,7 +86,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
             userItem.cloudType = CloudType.GoogleDrive;
             userItem.cloudType = CloudType.GoogleDrive;
 
 
             UserInfo user = new UserInfo();
             UserInfo user = new UserInfo();
-            user = await userItem.GetUserAcountAsync();
+            user =  userItem.GetUserAcountAsync();
             userItem.userInfo = user;
             userItem.userInfo = user;
 
 
             Cloud.CloudLists.Add(userItem);
             Cloud.CloudLists.Add(userItem);
@@ -106,43 +107,43 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
 
 
         #region  文件
         #region  文件
 
 
-        public async Task<bool> UpLoadFile(FileOperation fileOperation)
+        public bool UpLoadFile(FileOperation fileOperation)
         {
         {
             bool result = false;
             bool result = false;
             var user = fileOperation.User as GoogleDriveUserItem;
             var user = fileOperation.User as GoogleDriveUserItem;
             if (user != null)
             if (user != null)
             {
             {
                 if (fileOperation.DoFile != null)
                 if (fileOperation.DoFile != null)
-                    result = await user.FileUpload(fileOperation.SourceFile, fileOperation.DoFile.Id);
+                    result = user.FileUpload(fileOperation.SourceFile, fileOperation.DoFile.Id);
                 else
                 else
-                    result = await user.FileUpload(fileOperation.SourceFile,"");
+                    result = user.FileUpload(fileOperation.SourceFile,"");
 
 
             }
             }
             return result;
             return result;
         }
         }
 
 
-        public async Task<string> DownloadGoogleFile(FileOperation fileOperation, string savePath)
+        public string DownloadGoogleFile(FileOperation fileOperation, string savePath)
         {
         {
             string result = "";
             string result = "";
             var user = fileOperation.User as GoogleDriveUserItem;
             var user = fileOperation.User as GoogleDriveUserItem;
             if(user != null)
             if(user != null)
             {
             {
-                result = await user.DownloadGoogleFile(fileOperation.DoFile as GoogleDriveFiles, savePath);
+                result = user.DownloadGoogleFile(fileOperation.DoFile as GoogleDriveFiles, savePath);
             }
             }
             return result;
             return result;
         }
         }
         
         
-        public async Task<List<GoogleDriveFiles>> GetFolder(FileOperation fileOperation)
+        public List<GoogleDriveFiles> GetFolder(FileOperation fileOperation)
         {
         {
             var user = fileOperation.User as GoogleDriveUserItem;
             var user = fileOperation.User as GoogleDriveUserItem;
             if (user != null)
             if (user != null)
             {
             {
                 if (fileOperation.DoFile == null)
                 if (fileOperation.DoFile == null)
                 {
                 {
-                    return await user.GetDriveFiles(user.Service);
+                    return user.GetDriveFiles(user.Service);
                 }
                 }
                 else
                 else
-                    return await user.GetDriveFiles(user.Service, (fileOperation.DoFile as GoogleDriveFiles).Id);
+                    return user.GetDriveFiles(user.Service, (fileOperation.DoFile as GoogleDriveFiles).Id);
             }
             }
             return null;
             return null;
         }
         }

+ 9 - 10
PDF Office/ViewModels/HomePanel/CloudDrive/CloudDriveType/GoogleDriveUserItem.cs

@@ -60,7 +60,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// 获取帐号
         /// 获取帐号
         /// </summary>
         /// </summary>
         /// <returns>返回用户帐号地址</returns>
         /// <returns>返回用户帐号地址</returns>
-        private async Task<UserInfo> GetUserAcount()
+        private UserInfo GetUserAcount()
         {
         {
             UserInfo userInfo = null;
             UserInfo userInfo = null;
             if (Service != null)
             if (Service != null)
@@ -81,9 +81,9 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// 获取帐号
         /// 获取帐号
         /// </summary>
         /// </summary>
         /// <returns>返回用户帐号地址</returns>
         /// <returns>返回用户帐号地址</returns>
-        public async Task<UserInfo> GetUserAcountAsync()
+        public  UserInfo GetUserAcountAsync()
         {
         {
-            return await GetUserAcount();
+            return GetUserAcount();
         }
         }
 
 
 
 
@@ -97,7 +97,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// <param name="service"></param>
         /// <param name="service"></param>
         /// <param name="parentFilesId">文件夹ID:file.Id</param>
         /// <param name="parentFilesId">文件夹ID:file.Id</param>
         /// <returns></returns>
         /// <returns></returns>
-        public async Task<List<GoogleDriveFiles>> GetDriveFiles(DriveService service = null, string  parentFilesId = null)
+        public List<GoogleDriveFiles> GetDriveFiles(DriveService service = null, string  parentFilesId = null)
         {
         {
             if (service == null)
             if (service == null)
                 return null;
                 return null;
@@ -174,7 +174,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// 上传文件
         /// 上传文件
         /// </summary>
         /// </summary>
         /// <param name="filepath">本地文件路径</param>
         /// <param name="filepath">本地文件路径</param>
-        public  async Task<bool> FileUpload(string filepath,string desFolderId)
+        public  bool FileUpload(string filepath,string desFolderId)
         {
         {
             if (Service == null)
             if (Service == null)
                 return false;
                 return false;
@@ -217,7 +217,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// <param name="savePath"></param>
         /// <param name="savePath"></param>
         /// <returns></returns>
         /// <returns></returns>
         //
         //
-        public  async Task<string> DownloadGoogleFile(GoogleDriveFiles googleDriveFiles, string savePath)
+        public  string DownloadGoogleFile(GoogleDriveFiles googleDriveFiles, string savePath)
         {
         {
             if (Service == null)
             if (Service == null)
                 return "";
                 return "";
@@ -297,7 +297,6 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         ///  异步获取Google服务的包信息,避免UI线程卡死
         ///  异步获取Google服务的包信息,避免UI线程卡死
         /// </summary>
         /// </summary>
         /// <param name="userInfoFile"></param>
         /// <param name="userInfoFile"></param>
-        [Obsolete]
         public static async Task<Tuple<DriveService, UserCredential>> GetServiceAsync(string userInfoFile = "")
         public static async Task<Tuple<DriveService, UserCredential>> GetServiceAsync(string userInfoFile = "")
         {
         {
             Tuple<DriveService, UserCredential> tuple = null;
             Tuple<DriveService, UserCredential> tuple = null;
@@ -313,7 +312,6 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// </summary>
         /// </summary>
         /// <param name="FilePath">登录过的用户文件;若为空,则为新用户登录</param>
         /// <param name="FilePath">登录过的用户文件;若为空,则为新用户登录</param>
         /// <returns></returns>
         /// <returns></returns>
-        [Obsolete]
         public static Tuple<DriveService, UserCredential> GetService(string FilePath = "")
         public static Tuple<DriveService, UserCredential> GetService(string FilePath = "")
         {
         {
             Tuple<DriveService, UserCredential> tuple = null;
             Tuple<DriveService, UserCredential> tuple = null;
@@ -330,7 +328,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
                 using (var stream = new FileStream(CredentialsPath, FileMode.Open, FileAccess.Read))
                 using (var stream = new FileStream(CredentialsPath, FileMode.Open, FileAccess.Read))
                 {
                 {
                     credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                     credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
-                        GoogleClientSecrets.Load(stream).Secrets,
+                        GoogleClientSecrets.FromStream(stream).Secrets,
                         Scopes,
                         Scopes,
                         "user",
                         "user",
                         CancellationToken.None,
                         CancellationToken.None,
@@ -346,7 +344,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
                 return tuple = new Tuple<DriveService, UserCredential>(service, credential);
                 return tuple = new Tuple<DriveService, UserCredential>(service, credential);
                 
                 
             }
             }
-            catch (Exception e)
+            catch (Exception)
             {
             {
                 //网络连接失败的情况
                 //网络连接失败的情况
                 return null;
                 return null;
@@ -359,6 +357,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType
         /// 获取登录过的账号
         /// 获取登录过的账号
         /// </summary>
         /// </summary>
         /// <returns>历史账号</returns>
         /// <returns>历史账号</returns>
+        [Obsolete]
         public static async Task<List<Tuple<DriveService, UserCredential>>> GetHistoryService()
         public static async Task<List<Tuple<DriveService, UserCredential>>> GetHistoryService()
         {
         {
             DirectoryInfo TheFolder = new DirectoryInfo(FilesPathTemp);
             DirectoryInfo TheFolder = new DirectoryInfo(FilesPathTemp);

+ 1 - 1
PDF Office/ViewModels/HomePanel/CloudDrive/CloudFilesContentViewModel.cs

@@ -227,7 +227,7 @@ namespace PDF_Master.ViewModels.HomePanel.CloudDrive
                 {
                 {
                     fileOperation.SourceFile = openFileDialog.FileName;
                     fileOperation.SourceFile = openFileDialog.FileName;
                     fileOperation.SourceFileName = openFileDialog.SafeFileName;
                     fileOperation.SourceFileName = openFileDialog.SafeFileName;
-                    var result = await CloudManager.UpLoadFile(fileOperation);
+                    var result =await CloudManager.UpLoadFile(fileOperation);
                     if (result)
                     if (result)
                     {
                     {
                         FilesList = await CloudManager.OpenFolder(fileOperation);
                         FilesList = await CloudManager.OpenFolder(fileOperation);

+ 3 - 3
PDF Office/ViewModels/HomePanel/PDFTools/HomeFilesContentViewModel.cs

@@ -152,7 +152,7 @@ namespace PDF_Master.ViewModels.HomePanel.PDFTools
         /// <summary>
         /// <summary>
         /// 从扫描仪创建
         /// 从扫描仪创建
         /// </summary>
         /// </summary>
-        private async void createFromScanner(string args)
+        private void createFromScanner(string args)
         {
         {
 
 
             if (homeContentViewModel != null)
             if (homeContentViewModel != null)
@@ -164,7 +164,7 @@ namespace PDF_Master.ViewModels.HomePanel.PDFTools
         /// <summary>
         /// <summary>
         /// 打开文件
         /// 打开文件
         /// </summary>
         /// </summary>
-        public async void OpenFile()
+        public void OpenFile()
         {
         {
             if (homeContentViewModel != null)
             if (homeContentViewModel != null)
             {
             {
@@ -186,7 +186,7 @@ namespace PDF_Master.ViewModels.HomePanel.PDFTools
         /// <summary>
         /// <summary>
         /// 从其他格式文件创建PDF
         /// 从其他格式文件创建PDF
         /// </summary>
         /// </summary>
-        private async void createFromOtherFile()
+        private void createFromOtherFile()
         {
         {
             if (homeContentViewModel != null)
             if (homeContentViewModel != null)
             {
             {

+ 1 - 1
PDF Office/ViewModels/HomePanel/RecentFiles/RecentFilesContentViewModel.cs

@@ -438,7 +438,7 @@ namespace PDF_Master.ViewModels.HomePanel.RecentFiles
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 1 - 1
PDF Office/ViewModels/MainContentViewModel.cs

@@ -528,7 +528,7 @@ namespace PDF_Master.ViewModels
                 //}));
                 //}));
                 return true;
                 return true;
             }
             }
-            catch (Exception ex)
+            catch (Exception)
             {
             {
                 string str = "没有安装";
                 string str = "没有安装";
                 //判断是否有安装office软件
                 //判断是否有安装office软件

+ 0 - 1
PDF Office/ViewModels/MainWindowViewModel.cs

@@ -31,7 +31,6 @@ namespace PDF_Master.ViewModels
     public class MainWindowViewModel : BindableBase
     public class MainWindowViewModel : BindableBase
     {
     {
         private MainContent selectedItem;
         private MainContent selectedItem;
-        private LoginDialogViewModel LoginDialogViewModel;
 
 
         #region 文案
         #region 文案
 
 

+ 136 - 14
PDF Office/ViewModels/PageEdit/PageEditContentViewModel.cs

@@ -93,8 +93,141 @@ namespace PDF_Master.ViewModels.PageEdit
             }
             }
         }
         }
 
 
+        private string t_Insert;
+
+        public string T_Insert
+        {
+            get { return t_Insert; }
+            set
+            {
+                SetProperty(ref t_Insert, value);
+            }
+        }
+
+        private string t_InsertFile;
+
+        public string T_InsertFile
+        {
+            get { return t_InsertFile; }
+            set
+            {
+                SetProperty(ref t_InsertFile, value);
+            }
+        }
+
+        private string t_InsertaBlankPage;
+
+        public string T_InsertaBlankPage
+        {
+            get { return t_InsertaBlankPage; }
+            set
+            {
+                SetProperty(ref t_InsertaBlankPage, value);
+            }
+        }
+
+        private string t_InsertaCustomPage;
+
+        public string T_InsertaCustomPage
+        {
+            get { return t_InsertaCustomPage; }
+            set
+            {
+                SetProperty(ref t_InsertaCustomPage, value);
+            }
+        }
+
+        private string t_Extract;
+
+        public string T_Extract
+        {
+            get { return t_Extract; }
+            set
+            {
+                SetProperty(ref t_Extract, value);
+            }
+        }
+
+        private string t_Replace;
+
+        public string T_Replace
+        {
+            get { return t_Replace; }
+            set
+            {
+                SetProperty(ref t_Replace, value);
+            }
+        }
+
+        private string t_Split;
+
+        public string T_Split
+        {
+            get { return t_Split; }
+            set
+            {
+                SetProperty(ref t_Split, value);
+            }
+        }
+
+        private string t_InsertPage;
+
+        public string T_InsertPage
+        {
+            get { return t_InsertPage; }
+            set
+            {
+                SetProperty(ref t_InsertPage, value);
+            }
+        }
+
+        private string t_Reverse;
+
+        public string T_Reverse
+        {
+            get { return t_Reverse; }
+            set
+            {
+                SetProperty(ref t_Reverse, value);
+            }
+        }
+
+        private string t_ExtractPage;
+
+        public string T_ExtractPage
+        {
+            get { return t_ExtractPage; }
+            set
+            {
+                SetProperty(ref t_ExtractPage, value);
+            }
+        }
+
+        private string t_ReplacePage;
+
+        public string T_ReplacePage
+        {
+            get { return t_ReplacePage; }
+            set
+            {
+                SetProperty(ref t_ReplacePage, value);
+            }
+        }
+
         private void InitString()
         private void InitString()
         {
         {
+            T_InsertFile = App.MainPageLoader.GetString("PageEdit_Insert");
+            T_Insert = App.MainPageLoader.GetString("PageEdit_InsertFile");
+            T_InsertaBlankPage = App.MainPageLoader.GetString("PageEdit_InsertaBlankPage");
+            T_InsertaCustomPage = App.MainPageLoader.GetString("PageEdit_InsertaCustomPage");
+            T_Extract = App.MainPageLoader.GetString("PageEdit_Extract");
+            T_Replace = App.MainPageLoader.GetString("PageEdit_Replace");
+            T_Split = App.MainPageLoader.GetString("PageEdit_Split");
+            T_InsertPage = App.MainPageLoader.GetString("PageEdit_InsertPage");
+            T_Reverse = App.MainPageLoader.GetString("PageEdit_Reverse");
+            T_ExtractPage = App.MainPageLoader.GetString("PageEdit_ExtractPage");
+            T_ReplacePage = App.MainPageLoader.GetString("PageEdit_ReplacePage");
+
             T_Title = App.MainPageLoader.GetString("Thumbnails_Title");
             T_Title = App.MainPageLoader.GetString("Thumbnails_Title");
             T_DeleteToolTip = App.MainPageLoader.GetString("ToolTipsPageEdit_Delete");
             T_DeleteToolTip = App.MainPageLoader.GetString("ToolTipsPageEdit_Delete");
             T_DeleteLook = App.MainPageLoader.GetString("T_DeleteLook");
             T_DeleteLook = App.MainPageLoader.GetString("T_DeleteLook");
@@ -147,11 +280,6 @@ namespace PDF_Master.ViewModels.PageEdit
         /// </summary>
         /// </summary>
         private bool isFirstLoad = true;
         private bool isFirstLoad = true;
 
 
-        /// <summary>
-        /// 是否正在拖拽排序中
-        /// </summary>
-        private bool DragSorting = false;
-
         /// <summary>
         /// <summary>
         /// 记录多选项中最后一项的索引
         /// 记录多选项中最后一项的索引
         /// </summary>
         /// </summary>
@@ -941,7 +1069,7 @@ namespace PDF_Master.ViewModels.PageEdit
                 pDFViewer.InitDocument(fileName);
                 pDFViewer.InitDocument(fileName);
                 return fileName;
                 return fileName;
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
                 string str = "没有安装";
                 string str = "没有安装";
                 //判断是否有安装office软件
                 //判断是否有安装office软件
@@ -1627,7 +1755,7 @@ namespace PDF_Master.ViewModels.PageEdit
         /// <summary>
         /// <summary>
         /// 粘贴
         /// 粘贴
         /// </summary>
         /// </summary>
-        private async void paste(int Index = -1)
+        private void paste(int Index = -1)
         {
         {
             if (!ServiceHelper.IAPBeforeFunction())
             if (!ServiceHelper.IAPBeforeFunction())
             {
             {
@@ -2236,7 +2364,7 @@ namespace PDF_Master.ViewModels.PageEdit
                 //显示文件夹,并选中一个文件
                 //显示文件夹,并选中一个文件
                 Process.Start("explorer", "/select,\"" + selectedfile + "\"");
                 Process.Start("explorer", "/select,\"" + selectedfile + "\"");
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
             }
             }
         }
         }
@@ -2944,7 +3072,6 @@ namespace PDF_Master.ViewModels.PageEdit
         /// <param name="pageIndexs"></param>
         /// <param name="pageIndexs"></param>
         public void DragToSort(int targetIndex, List<int> pageIndexs, bool IsFromUndoRedo = false)
         public void DragToSort(int targetIndex, List<int> pageIndexs, bool IsFromUndoRedo = false)
         {
         {
-            DragSorting = true;
             //拖拽排序后需要重新选中项的集合
             //拖拽排序后需要重新选中项的集合
             List<int> selectedPages = new List<int>();
             List<int> selectedPages = new List<int>();
 
 
@@ -2966,7 +3093,6 @@ namespace PDF_Master.ViewModels.PageEdit
                     result = MoveItemToIndex(pageIndexs[i], targetIndex + i);
                     result = MoveItemToIndex(pageIndexs[i], targetIndex + i);
                     if (!result)
                     if (!result)
                     {
                     {
-                        DragSorting = false;
                         return;
                         return;
                     }
                     }
                     SourceTargetValue.Add(pageIndexs[i], targetIndex + i);
                     SourceTargetValue.Add(pageIndexs[i], targetIndex + i);
@@ -2981,7 +3107,6 @@ namespace PDF_Master.ViewModels.PageEdit
                     result = MoveItemToIndex(pageIndexs[pageIndexs.Count - 1 - i], targetIndex - 1 - i);
                     result = MoveItemToIndex(pageIndexs[pageIndexs.Count - 1 - i], targetIndex - 1 - i);
                     if (!result)
                     if (!result)
                     {
                     {
-                        DragSorting = false;
                         return;
                         return;
                     }
                     }
                     SourceTargetValue.Add(pageIndexs[pageIndexs.Count - 1 - i], targetIndex - 1 - i);
                     SourceTargetValue.Add(pageIndexs[pageIndexs.Count - 1 - i], targetIndex - 1 - i);
@@ -3007,7 +3132,6 @@ namespace PDF_Master.ViewModels.PageEdit
                     result = MoveItemToIndex(pageIndexs[k - i], targetIndex - 1 - i);
                     result = MoveItemToIndex(pageIndexs[k - i], targetIndex - 1 - i);
                     if (!result)
                     if (!result)
                     {
                     {
-                        DragSorting = false;
                         return;
                         return;
                     }
                     }
                     SourceTargetValue.Add(pageIndexs[k - i], targetIndex - 1 - i);
                     SourceTargetValue.Add(pageIndexs[k - i], targetIndex - 1 - i);
@@ -3020,7 +3144,6 @@ namespace PDF_Master.ViewModels.PageEdit
                     result = MoveItemToIndex(pageIndexs[j], newIndex);
                     result = MoveItemToIndex(pageIndexs[j], newIndex);
                     if (!result)
                     if (!result)
                     {
                     {
-                        DragSorting = false;
                         return;
                         return;
                     }
                     }
                     SourceTargetValue.Add(pageIndexs[j], newIndex);
                     SourceTargetValue.Add(pageIndexs[j], newIndex);
@@ -3028,7 +3151,6 @@ namespace PDF_Master.ViewModels.PageEdit
                     newIndex++;
                     newIndex++;
                 }
                 }
             }
             }
-            DragSorting = false;
 
 
             //刷新页码和图片
             //刷新页码和图片
             ReloadAfterOption(true, false, new Tuple<int, int>(0, PDFViewer.Document.PageCount));
             ReloadAfterOption(true, false, new Tuple<int, int>(0, PDFViewer.Document.PageCount));

+ 1 - 2
PDF Office/ViewModels/PropertyPanel/AnnotPanel/LinkAnnotPropertyViewModel.cs

@@ -493,7 +493,6 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
         private bool isLoaded = false;
         private bool isLoaded = false;
         private bool isMail = false;
         private bool isMail = false;
         private bool isSelected = false;
         private bool isSelected = false;
-        private bool IsAnnotSelect = true;
         private string historyBtnGOorBackTag = string.Empty;
         private string historyBtnGOorBackTag = string.Empty;
         private int totalPage = 0;
         private int totalPage = 0;
         private int backPageIndex = 0;
         private int backPageIndex = 0;
@@ -1709,7 +1708,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                 }
                 }
                 return bmpData;
                 return bmpData;
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
                 return null;
                 return null;
             }
             }

+ 0 - 2
PDF Office/ViewModels/PropertyPanel/AnnotPanel/SharpsAnnotPropertyViewModel.cs

@@ -450,7 +450,6 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
 
 
                 var tran = (double)obj;
                 var tran = (double)obj;
                 AnnotArgsType argsType = AnnotArgsType.AnnotSquare;
                 AnnotArgsType argsType = AnnotArgsType.AnnotSquare;
-                bool isLine = false;
                 switch (BasicVm.strOtherTag)
                 switch (BasicVm.strOtherTag)
                 {
                 {
                     case "Rect":
                     case "Rect":
@@ -584,7 +583,6 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
             //初始化填充颜色面板显示
             //初始化填充颜色面板显示
             IsLineAnnot = false;
             IsLineAnnot = false;
 
 
-            int isAnnotArgs = 0;
             CircleAnnotArgs args = new CircleAnnotArgs();
             CircleAnnotArgs args = new CircleAnnotArgs();
             SquareAnnotArgs argsSquare = new SquareAnnotArgs();
             SquareAnnotArgs argsSquare = new SquareAnnotArgs();
             LineAnnotArgs argsLine = new LineAnnotArgs();
             LineAnnotArgs argsLine = new LineAnnotArgs();

+ 2 - 2
PDF Office/ViewModels/PropertyPanel/AnnotPanel/SnapshotEditMenuViewModel.cs

@@ -97,7 +97,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                         SnapToolEvent.Invoke(this, param);
                         SnapToolEvent.Invoke(this, param);
                     }
                     }
                 }
                 }
-                catch (Exception ex)
+                catch
                 {
                 {
                 }
                 }
             }
             }
@@ -223,7 +223,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                                 {
                                 {
                                 }
                                 }
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
                             }
                             }
 
 

+ 1 - 3
PDF Office/ViewModels/PropertyPanel/AnnotPanel/StickyNotePropertyViewModel.cs

@@ -97,9 +97,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
             set => SetProperty(ref _colorItems, value);
             set => SetProperty(ref _colorItems, value);
         }
         }
 
 
-        public Dictionary<string, string> StickyNoteTypes = new Dictionary<string, string>();
-
-        public event EventHandler<object> LoadPropertyHandler;
+        public Dictionary<string, string> StickyNoteTypes = new Dictionary<string, string>();
 
 
         public DelegateCommand<object> SelectedColorChangedCommand { get; set; }
         public DelegateCommand<object> SelectedColorChangedCommand { get; set; }
         public DelegateCommand<object> SelectedValueChangedCommand { get; set; }
         public DelegateCommand<object> SelectedValueChangedCommand { get; set; }

+ 1 - 1
PDF Office/ViewModels/PropertyPanel/PDFEdit/ImageEditPropertyViewModel.cs

@@ -477,7 +477,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
         }
         }
 
 
         //此处只有异步 ReplaceimgTask()才有作用
         //此处只有异步 ReplaceimgTask()才有作用
-        async Task ReplaceimgTask()
+        private async void ReplaceimgTask()
         {
         {
             await Task.Delay(100);
             await Task.Delay(100);
             GetImagePreView();
             GetImagePreView();

+ 3 - 3
PDF Office/ViewModels/PropertyPanel/Scan/ScanPropertyPanelViewModel.cs

@@ -89,7 +89,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.Scan
                 }
                 }
                 );
                 );
             }
             }
-            catch (Exception e)
+            catch
             {
             {
             }
             }
         }
         }
@@ -107,7 +107,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.Scan
                 }
                 }
                 );
                 );
             }
             }
-            catch (Exception e)
+            catch
             {
             {
             }
             }
         }
         }
@@ -124,7 +124,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.Scan
                 }
                 }
                 );
                 );
             }
             }
-            catch (Exception e)
+            catch
             {
             {
             }
             }
         }
         }

+ 0 - 3
PDF Office/ViewModels/PropertyPanel/ViewModular/ViewModularContentViewModel.cs

@@ -161,9 +161,6 @@ namespace PDF_Master.ViewModels.PropertyPanel.ViewModular
 
 
         private IDialogService dialogs;
         private IDialogService dialogs;
 
 
-        //记录 单页 双页  书本模式
-        private ViewMode viewmode = ViewMode.Single;
-
         public CPDFViewer PDFViewer { get; set; }
         public CPDFViewer PDFViewer { get; set; }
         public CPDFViewer SplitScreenPDFViewer { get; set; }
         public CPDFViewer SplitScreenPDFViewer { get; set; }
         public BottomToolContentViewModel BottomToolContentViewModel { get; set; }
         public BottomToolContentViewModel BottomToolContentViewModel { get; set; }

+ 1 - 3
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Command.cs

@@ -289,7 +289,7 @@ namespace PDF_Master.ViewModels.Tools
                                 Process.Start(uri);
                                 Process.Start(uri);
                             }
                             }
                         }
                         }
-                        catch (Exception ex)
+                        catch
                         {
                         {
                         }
                         }
                     }
                     }
@@ -1687,8 +1687,6 @@ namespace PDF_Master.ViewModels.Tools
             }
             }
         }
         }
 
 
-        private bool isDown = true;
-
         //阅读页悬浮相应
         //阅读页悬浮相应
         /// <summary>
         /// <summary>
         /// 阅读页鼠标悬浮在注释上的虚线
         /// 阅读页鼠标悬浮在注释上的虚线

+ 1 - 1
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Function.cs

@@ -1543,7 +1543,7 @@ namespace PDF_Master.ViewModels.Tools
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex) { }
+            catch{ }
         }
         }
 
 
         public string GetExportPathName(string path)
         public string GetExportPathName(string path)

+ 1 - 1
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Layout.cs

@@ -368,7 +368,7 @@ namespace PDF_Master.ViewModels.Tools
                     }
                     }
                 }
                 }
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
             }
             }
         }
         }

+ 0 - 3
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Properties.cs

@@ -224,9 +224,6 @@ namespace PDF_Master.ViewModels.Tools
         // 是否处于打印
         // 是否处于打印
         private bool IsPasteShape = false;
         private bool IsPasteShape = false;
 
 
-        // 是否处于创建便签注释
-        private bool IsCreateStickyNote = false;
-
         //判断注释是否在拖拉创建中
         //判断注释是否在拖拉创建中
         public bool IsCreateAnnot = false;
         public bool IsCreateAnnot = false;
 
 

+ 1 - 1
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.cs

@@ -1842,7 +1842,7 @@ namespace PDF_Master.ViewModels.Tools
                                 {
                                 {
                                 }
                                 }
                             }
                             }
-                            catch (Exception ex)
+                            catch
                             {
                             {
                             }
                             }
 
 

+ 0 - 5
PDF Office/ViewModels/Tools/ConverterBarContentViewModel.cs

@@ -19,16 +19,12 @@ namespace PDF_Master.ViewModels.Tools
 {
 {
     public class ConverterBarContentViewModel : BindableBase, INavigationAware
     public class ConverterBarContentViewModel : BindableBase, INavigationAware
     {
     {
-        private bool isFirstLoad = true;
-
         private CPDFViewer PDFViewer;
         private CPDFViewer PDFViewer;
 
 
         public IDialogService dialogs;
         public IDialogService dialogs;
 
 
         private ViewContentViewModel viewContentViewModel;
         private ViewContentViewModel viewContentViewModel;
 
 
-        private string _pageIndex = "0";
-
         ///// <value>
         ///// <value>
         ///// 当前页
         ///// 当前页
         ///// </value>
         ///// </value>
@@ -282,7 +278,6 @@ namespace PDF_Master.ViewModels.Tools
             navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
             navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
             if (PDFViewer != null)
             if (PDFViewer != null)
             {
             {
-                isFirstLoad = false;
                 viewContentViewModel.IsPropertyOpen = false;
                 viewContentViewModel.IsPropertyOpen = false;
                 PDFViewer.SetMouseMode(MouseModes.PanTool);
                 PDFViewer.SetMouseMode(MouseModes.PanTool);
             }
             }

+ 2 - 2
PDF Office/ViewModels/Tools/ScanContentViewModel.cs

@@ -100,7 +100,7 @@ namespace PDF_Master.ViewModels.Tools
                 }
                 }
                 );
                 );
             }
             }
-            catch (Exception e)
+            catch
             {
             {
             }
             }
         }
         }
@@ -198,7 +198,7 @@ namespace PDF_Master.ViewModels.Tools
                     }
                     }
                     editPage.EndEdit();
                     editPage.EndEdit();
                 }
                 }
-                catch (Exception e)
+                catch
                 {
                 {
                     throw;
                     throw;
                 }
                 }

+ 0 - 10
PDF Office/ViewModels/Tools/ToolsBarContentViewModel.cs

@@ -117,17 +117,8 @@ namespace PDF_Master.ViewModels.Tools
         List<int> cropCurrentPageList = new List<int>();
         List<int> cropCurrentPageList = new List<int>();
 
 
 
 
-        private CPDFDocument.GetPageIndexDelegate indexDelegate = null;
-
-
         public string unicode = null;
         public string unicode = null;
 
 
-        /// <summary>
-        /// 是否是第一次加载
-        /// </summary>
-        private bool isFirstLoad = true;
-
-        private string _pageIndex = "0";
 
 
         ///// <value>
         ///// <value>
         ///// 当前页
         ///// 当前页
@@ -450,7 +441,6 @@ namespace PDF_Master.ViewModels.Tools
             {
             {
                 UndoManager.setPDFViewer(PDFViewer);
                 UndoManager.setPDFViewer(PDFViewer);
                 //DFViewer.UndoManager.AddHistory(UndoManager);
                 //DFViewer.UndoManager.AddHistory(UndoManager);
-                isFirstLoad = false;
             }
             }
         }
         }
     }
     }

+ 13 - 19
PDF Office/ViewModels/ViewContentViewModel.cs

@@ -44,9 +44,6 @@ using System.Windows.Threading;
 using Dropbox.Api.Files;
 using Dropbox.Api.Files;
 using System.Windows.Media;
 using System.Windows.Media;
 using Color = System.Windows.Media.Color;
 using Color = System.Windows.Media.Color;
-
-using PDFSettings;
-
 using PDF_Master.Views;
 using PDF_Master.Views;
 using System.Windows.Documents;
 using System.Windows.Documents;
 using ComPDFKit.PDFPage;
 using ComPDFKit.PDFPage;
@@ -517,9 +514,6 @@ namespace PDF_Master.ViewModels
             }
             }
         }
         }
 
 
-        private Visibility converterBarContentVisible = Visibility.Collapsed;
-        private Visibility toolsbarContentVisible = Visibility.Collapsed;
-
         ///// <summary>
         ///// <summary>
         ///// 控制ToolsBarContent的显示
         ///// 控制ToolsBarContent的显示
         ///// 留意:显示前需要先注入内容、设置好行和跨行数
         ///// 留意:显示前需要先注入内容、设置好行和跨行数
@@ -726,11 +720,6 @@ namespace PDF_Master.ViewModels
         /// </summary>
         /// </summary>
         private DispatcherTimer autoSaveTimer = new DispatcherTimer();
         private DispatcherTimer autoSaveTimer = new DispatcherTimer();
 
 
-        /// <summary>
-        /// 用来避免重复触发导航事件的标志符
-        /// </summary>
-        private bool isOpenFile = false;
-
         /// <summary>
         /// <summary>
         /// 鼠标滚轮缩放的缩放值
         /// 鼠标滚轮缩放的缩放值
         /// </summary>
         /// </summary>
@@ -894,7 +883,7 @@ namespace PDF_Master.ViewModels
             dialogs = dialogService;
             dialogs = dialogService;
             events = eventAggregator;
             events = eventAggregator;
             unicode = App.mainWindowViewModel.SelectedItem.Unicode;
             unicode = App.mainWindowViewModel.SelectedItem.Unicode;
-            Load = new DelegateCommand(LoadControl);
+            Load = new DelegateCommand(()=> { LoadControl(); });
             MouseDown = new DelegateCommand(MouseDownEvent);
             MouseDown = new DelegateCommand(MouseDownEvent);
             SaveFile = new DelegateCommand(() => { saveFile(); }, CanSaveExcute).ObservesProperty(() => CanSave);
             SaveFile = new DelegateCommand(() => { saveFile(); }, CanSaveExcute).ObservesProperty(() => CanSave);
             SaveAsFlattenCommand = new DelegateCommand(saveAsFlatten);
             SaveAsFlattenCommand = new DelegateCommand(saveAsFlatten);
@@ -1247,7 +1236,7 @@ namespace PDF_Master.ViewModels
                     }
                     }
                     else
                     else
                     {
                     {
-                        System.Windows.Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, new Action(() =>
+                        await System.Windows.Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, new Action(() =>
                         {
                         {
                             App.mainWindowViewModel.AddTabItem(dialog.FileNames[i]);
                             App.mainWindowViewModel.AddTabItem(dialog.FileNames[i]);
                         }));
                         }));
@@ -2551,7 +2540,11 @@ namespace PDF_Master.ViewModels
             PDFViewer.UndoManager.Redo();
             PDFViewer.UndoManager.Redo();
         }
         }
 
 
-        private void LoadControl()
+        /// <summary>
+        /// 加载阅读页必要组件,BOTA,底部工具栏等
+        /// </summary>
+        /// <param name="fromSaveAs"></param>
+        private void LoadControl(bool fromSaveAs = false)
         {
         {
             NavigationParameters parameters = new NavigationParameters();
             NavigationParameters parameters = new NavigationParameters();
             parameters.Add(ParameterNames.PDFViewer, PDFViewer);
             parameters.Add(ParameterNames.PDFViewer, PDFViewer);
@@ -2562,9 +2555,10 @@ namespace PDF_Master.ViewModels
             region.RequestNavigate(ReadModeRegionName, "PageContent", parameters);
             region.RequestNavigate(ReadModeRegionName, "PageContent", parameters);
             region.RequestNavigate(SplitViewerRegionName, "SplitScreenContent", parameters);
             region.RequestNavigate(SplitViewerRegionName, "SplitScreenContent", parameters);
             //TODO 根据上一次关闭记录的菜单,选中顶部TabItem
             //TODO 根据上一次关闭记录的菜单,选中顶部TabItem
-            EnterSelectedBar("TabItemAnnotation");
-            //}
-            //));
+            if (!fromSaveAs)
+            {
+                EnterSelectedBar("TabItemAnnotation");
+            }
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -3351,8 +3345,8 @@ namespace PDF_Master.ViewModels
             mainViewModel.FilePath = PDFViewer.Document.FilePath;
             mainViewModel.FilePath = PDFViewer.Document.FilePath;
             App.mainWindowViewModel.CurrentPDFViewer = PDFViewer;
             App.mainWindowViewModel.CurrentPDFViewer = PDFViewer;
 
 
-            //刷新Bota 和底部工具栏的PDFviwer对象
-            LoadControl();
+            //刷新Bota 和底部工具栏的PDFviwer对象,不需要重新刷新注释工具栏
+            LoadControl(true);
         }
         }
 
 
         /// <summary>
         /// <summary>

+ 1 - 1
PDF Office/Views/BOTA/AnnotationContent.xaml.cs

@@ -98,7 +98,7 @@ namespace PDF_Master.Views.BOTA
                         }
                         }
                     }
                     }
                 }
                 }
-                catch (Exception e) { }
+                catch{ }
             }
             }
             else
             else
             {
             {

+ 1 - 1
PDF Office/Views/Dialog/AboutDialog.xaml.cs

@@ -52,7 +52,7 @@ namespace PDF_Master.Views.Dialog
 
 
         public void OnDialogClosed()
         public void OnDialogClosed()
         {
         {
-            
+            RequestClose.Invoke(new DialogResult());
         }
         }
 
 
         public void OnDialogOpened(IDialogParameters parameters)
         public void OnDialogOpened(IDialogParameters parameters)

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBackground/HomePageBackgroundDialog.xaml.cs

@@ -79,7 +79,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -112,7 +112,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -129,7 +129,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -145,7 +145,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageBates/HomePageBatesDialog.xaml.cs

@@ -85,7 +85,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -118,7 +118,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -135,7 +135,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -151,7 +151,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageCompressDialog.xaml.cs

@@ -66,7 +66,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -99,7 +99,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -116,7 +116,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -132,7 +132,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageConverter/HomePageConverterDialog.xaml.cs

@@ -84,7 +84,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -117,7 +117,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -134,7 +134,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -150,7 +150,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageHeaderFooter/HomePageHeaderFooterDialog.xaml.cs

@@ -79,7 +79,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -113,7 +113,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -130,7 +130,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -146,7 +146,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageRemoveDialog.xaml.cs

@@ -68,7 +68,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -101,7 +101,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -118,7 +118,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -134,7 +134,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 24
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageSetPasswordDialog.xaml.cs

@@ -18,23 +18,6 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
     {
     {
         private HomePageSetPasswordDialogViewModel viewModel;
         private HomePageSetPasswordDialogViewModel viewModel;
         private IDropTargetHelper dropHelper;
         private IDropTargetHelper dropHelper;
-        private Boolean canOpenPasswordBoxHasFocus = false;
-        private Boolean canOpenTextBoxHasFocus = false;
-
-        private Boolean canEditPasswordBoxHasFocus = false;
-        private Boolean canEditTextBoxHasFocus = false;
-
-        private string canOpenPasswordBoxName = "CanOpenPasswordBox";
-        private string canEditPasswordBoxName = "CanEditPasswordBox";
-
-        private string canOpenTextBoxName = "CanOpenTextBox";
-        private string canEditTextBoxName = "CanEditTextBox";
-
-        private string showOpenPasswordBoxEyeLabelName = "ShowOpenPasswordBoxEyeLabel";
-        private string showEditPasswordBoxEyeLabelName = "ShowEditPasswordBoxEyeLabel";
-
-        private string showOpenTextBoxEyeLabelName = "ShowOpenTextBoxEyeLabel";
-        private string showEditTextBoxEyeLabelName = "ShowEditTextBoxEyeLabel";
 
 
         public HomePageSetPasswordDialog()
         public HomePageSetPasswordDialog()
         {
         {
@@ -89,7 +72,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -122,7 +105,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -139,10 +122,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
-            {
-
-            }
+            catch { }
 
 
         }
         }
 
 
@@ -155,7 +135,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 4 - 4
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkDialog.xaml.cs

@@ -79,7 +79,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -112,7 +112,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -129,7 +129,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -145,7 +145,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 0 - 1
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePageBatchProcessing/HomePageWatermark/HomePageWatermarkTemplateListFileContent.xaml.cs

@@ -33,7 +33,6 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.H
         {
         {
             IList list = FileWatermarkListbox.SelectedItems;
             IList list = FileWatermarkListbox.SelectedItems;
             var lists = FileWatermarkListbox.Items;
             var lists = FileWatermarkListbox.Items;
-            System.Data.DataRowView a;
             foreach (var item in list)
             foreach (var item in list)
             {
             {
 
 

+ 4 - 6
PDF Office/Views/Dialog/HomePageToolsDialogs/HomePagePictureToPDFDialog.xaml.cs

@@ -28,7 +28,6 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
     {
     {
         private IDropTargetHelper dropHelper;
         private IDropTargetHelper dropHelper;
         private HomePagePictureToPDFDialogViewModel viewModel;
         private HomePagePictureToPDFDialogViewModel viewModel;
-        private WindowState WindowState;
 
 
         public HomePagePictureToPDFDialog()
         public HomePagePictureToPDFDialog()
         {
         {
@@ -104,7 +103,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.Drop((System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -125,7 +124,6 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
         private void MainPage_DragEnter(object sender, DragEventArgs e)
         private void MainPage_DragEnter(object sender, DragEventArgs e)
         {
         {
             BtnBlank.IsEnabled = false;
             BtnBlank.IsEnabled = false;
-            string dropFile = "Drop";
             //dropFile = ((System.Array)e.Data.GetData(System.Windows.DataFormats.FileDrop)).GetValue(i).ToString(); ;
             //dropFile = ((System.Array)e.Data.GetData(System.Windows.DataFormats.FileDrop)).GetValue(i).ToString(); ;
             //页面编辑和缩略图
             //页面编辑和缩略图
 
 
@@ -141,7 +139,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
                 dropHelper?.DragEnter(new WindowInteropHelper(Window.GetWindow(this)).Handle, (System.Runtime.InteropServices.ComTypes.IDataObject)e.Data, ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -158,7 +156,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
                 Point iconPoint = e.GetPosition(this);
                 Point iconPoint = e.GetPosition(this);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
                 dropHelper?.DragOver(ref iconPoint, e.Effects);
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }
@@ -174,7 +172,7 @@ namespace PDF_Master.Views.Dialog.HomePageToolsDialogs
             {
             {
                 dropHelper?.DragLeave();
                 dropHelper?.DragLeave();
             }
             }
-            catch (Exception ex)
+            catch
             {
             {
 
 
             }
             }

+ 0 - 0
PDF Office/Views/Dialog/PageEditDialogs/ExtractDialog.xaml


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels