Browse Source

compdfkit(win) - 更改项目名,文件夹不存在则创建

weixiangjie 1 year ago
parent
commit
57ec71478b

Demo/Examples/Annotation/Annotation.csproj → Demo/Examples/Annotations/Annotations.csproj


Demo/Examples/Annotation/App.config → Demo/Examples/Annotations/App.config


Demo/Examples/Annotation/App.xaml → Demo/Examples/Annotations/App.xaml


Demo/Examples/Annotation/App.xaml.cs → Demo/Examples/Annotations/App.xaml.cs


Demo/Examples/Annotation/MainWindow.xaml → Demo/Examples/Annotations/MainWindow.xaml


Demo/Examples/Annotation/MainWindow.xaml.cs → Demo/Examples/Annotations/MainWindow.xaml.cs


Demo/Examples/Annotation/Properties/AssemblyInfo.cs → Demo/Examples/Annotations/Properties/AssemblyInfo.cs


+ 1 - 1
Demo/Examples/Annotation/Properties/Resources.Designer.cs

@@ -45,7 +45,7 @@ namespace AnnotationViewControl.Properties
                 if ((resourceMan == null))
                 {
                     global::System.Resources.ResourceManager temp =
-                        new global::System.Resources.ResourceManager("Annotation.Properties.Resources",
+                        new global::System.Resources.ResourceManager("Annotations.Properties.Resources",
                             typeof(Resources).Assembly);
                     resourceMan = temp;
                 }

Demo/Examples/Annotation/Properties/Resources.resx → Demo/Examples/Annotations/Properties/Resources.resx


Demo/Examples/Annotation/packages.config → Demo/Examples/Annotations/packages.config


+ 9 - 1
Demo/Examples/Compdfkit_Tools/DigitalSignature/CPDFSignatureListControl/CPDFSignatureListControl.xaml.cs

@@ -2,12 +2,15 @@ using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Globalization;
+using System.IO;
 using System.Linq;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Data;
 using System.Windows.Forms;
 using System.Windows.Input;
+using Compdfkit_Tools.Data;
+using Compdfkit_Tools.DigitalSignature.CPDFSignatureListControl;
 using Compdfkit_Tools.Helper;
 using Compdfkit_Tools.PDFControl;
 using ComPDFKit.DigitalSign;
@@ -53,7 +56,12 @@ namespace Compdfkit_Tools.DigitalSignature.CPDFSignatureListControl
             deleteMenu.Click += DeleteMenu_Click;
             popContextMenu.Items.Add(deleteMenu);
             
-            CPDFSignature.SignCertTrustedFolder = @"TrustedFolder\";
+            string trustedFolder = AppDomain.CurrentDomain.BaseDirectory + @"\TrustedFolder\";
+            if (!Directory.Exists(trustedFolder))
+            {
+                Directory.CreateDirectory(trustedFolder);
+            }
+            CPDFSignature.SignCertTrustedFolder = trustedFolder;
         }
         
         private void ViewSignatureDetailsMenu_Click(object sender, RoutedEventArgs e)

+ 1 - 1
Demo/Examples/Examlpes.sln

@@ -54,7 +54,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentCompareTest", "Samp
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteractiveFormsTest", "Samples\InteractiveFormsTest\InteractiveFormsTest.csproj", "{FB4B7306-DECC-457C-8F4C-6CE946F753D6}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotation", "Annotation\Annotation.csproj", "{134CCE10-A4C7-4632-BDF9-631241EA6FB9}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Annotations", "Annotations\Annotations.csproj", "{134CCE10-A4C7-4632-BDF9-631241EA6FB9}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDFViewer", "PDFViewer\PDFViewer.csproj", "{C38954D1-7490-4D96-8AE7-67468EA3E638}"
 EndProject