From 3f62d18e4361cd1d7a49c126765d95b2ad9c8246 Mon Sep 17 00:00:00 2001
From: chr <chr@mailcom>
Date: 星期二, 04 三月 2025 08:42:07 +0800
Subject: [PATCH] 优化插件;

---
 PdmSwPlugin.PropertySetting/SettingControl.xaml.cs |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/PdmSwPlugin.PropertySetting/SettingControl.xaml.cs b/PdmSwPlugin.PropertySetting/SettingControl.xaml.cs
index 06fb90a..9aedd83 100644
--- a/PdmSwPlugin.PropertySetting/SettingControl.xaml.cs
+++ b/PdmSwPlugin.PropertySetting/SettingControl.xaml.cs
@@ -337,7 +337,7 @@
             else if (docType == (int)swDocumentTypes_e.swDocPART)
             {
                 ReadDocPath = ReadDoc.GetPathName();
-                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, skipName);
+                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, null, skipName);
                 string fileType = properties.Get(NameConstant.docType);
                 /*if (fileType == "鍔犲伐浠�" || fileType == "妯$粍")
                 {
@@ -375,7 +375,7 @@
                 else
                 {
                     // !Equals(LastReadDoc, ReadDoc)
-                    properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, skipName);
+                    properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, null, skipName);
                     string fileType = properties.Get(NameConstant.docType);
                     /*if (fileType == "鍔犲伐浠�" || fileType == "妯$粍")
                     {
@@ -451,7 +451,7 @@
             else if (docType == (int)swDocumentTypes_e.swDocPART)
             {
                 ReadDocPath = ReadDoc.GetPathName();
-                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, skipName);
+                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, null, skipName);
                 string fileType = properties.Get(NameConstant.docType);
                 /*if (fileType == "鍔犲伐浠�" || fileType == "妯$粍")
                 {
@@ -473,7 +473,7 @@
             {
                 ReadDocPath = ReadDoc.GetPathName();
                 // !Equals(LastReadDoc, ReadDoc)
-                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, skipName);
+                properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, null, skipName);
                 string fileType = properties.Get(NameConstant.docType);
                 /*if (fileType == "鍔犲伐浠�" || fileType == "妯$粍")
                 {
@@ -553,7 +553,7 @@
             HashSet<string> skipName = new HashSet<string> {
                 NameConstant.materialCode
             };
-            Dictionary<string, string> properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, skipName);
+            Dictionary<string, string> properties = CustomPropertyUtil.GetCustomProperties2(ReadDoc, true, null, skipName);
             opt.SetProperties(ReadDoc, properties, !Equals(LastReadDoc, ReadDoc), out ErrMsg);
         }
 
@@ -711,5 +711,10 @@
                 }
             }
         }
+
+        public void DisabledHandler()
+        {
+            
+        }
     }
 }

--
Gitblit v1.9.1