瀏覽代碼

PDF工具 - PDF工具数据存储类更改到Helper位置

chenrongqian 2 年之前
父節點
當前提交
690b34d0f8

+ 3 - 3
PDF Office/Views/HomePanel/PDFTools/PDFTools.cs

@@ -5,7 +5,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace PDF_Office.Views.HomePanel.PDFTools
+namespace PDF_Office.Helper
 {
     public enum PDFToolType
     {
@@ -30,11 +30,11 @@ namespace PDF_Office.Views.HomePanel.PDFTools
         CompareDoc
 
     }
-    public class PDFTools
+    public class PDFToolsHelper
     {
         public List<ToolItem> AllTools = null;
         public List<ToolItem> QuickTools = null;
-        public PDFTools()
+        public PDFToolsHelper()
         {
             InitPDFTools();
         }

+ 1 - 1
PDF Office/Model/PDFTool/ToolItem.cs

@@ -1,4 +1,4 @@
-using PDF_Office.Views.HomePanel.PDFTools;
+using PDF_Office.Helper;
 using Prism.Mvvm;
 using System;
 using System.Collections.Generic;

+ 1 - 1
PDF Office/PDF Office.csproj

@@ -579,7 +579,7 @@
     <Compile Include="Views\HomePanel\HomeToolsContent.xaml.cs">
       <DependentUpon>HomeToolsContent.xaml</DependentUpon>
     </Compile>
-    <Compile Include="Views\HomePanel\PDFTools\PDFTools.cs" />
+    <Compile Include="Helper\PDFToolsHelper.cs" />
     <Compile Include="Views\HomePanel\PDFTools\PDFToolsContent.xaml.cs">
       <DependentUpon>PDFToolsContent.xaml</DependentUpon>
     </Compile>

+ 1 - 0
PDF Office/ViewModels/HomePanel/HomeGuidContentViewModel.cs

@@ -1,6 +1,7 @@
 using ComPDFKit.PDFDocument;
 using ComPDFKitViewer.PdfViewer;
 using PDF_Office.CustomControl;
+using PDF_Office.Helper;
 using PDF_Office.Model;
 using PDF_Office.Model.Dialog.HomePageToolsDialogs.HomePageBatchProcessing;
 using PDF_Office.Model.PDFTool;

+ 2 - 2
PDF Office/Views/HomePanel/PDFTools/PDFToolsContent.xaml.cs

@@ -34,7 +34,7 @@ namespace PDF_Office.Views.HomePanel.PDFTools
         private List<ToolItem> quickTools = null;
         private List<ToolItem> allTools = null;
         private List<ToolItem> moreTools = null;
-        PDFTools PDFtools;
+        PDFToolsHelper PDFtools;
 
         private string fileName = string.Empty;
         private BitmapSource bitmapSource = null;
@@ -47,7 +47,7 @@ namespace PDF_Office.Views.HomePanel.PDFTools
         public PDFToolsContent()
         {
             InitializeComponent();
-            PDFtools = new PDFTools();
+            PDFtools = new PDFToolsHelper();
 
 
             #region ListBox

+ 2 - 2
PDF Office/Views/HomePanel/PDFTools/QuickToolsContent.xaml.cs

@@ -16,11 +16,11 @@ namespace PDF_Office.Views.HomePanel.PDFTools
     /// </summary>
     public partial class QuickToolsContent : UserControl
     {
-        PDFTools PDFtools;
+        PDFToolsHelper PDFtools;
         public QuickToolsContent()
         {
             InitializeComponent();
-            PDFtools = new PDFTools();
+            PDFtools = new PDFToolsHelper();
             ListBoxToolBars.ItemsSource = PDFtools.QuickTools;
         }