From b5234c5ab1e9e6826b8d8fc1e95fa752aaa40b74 Mon Sep 17 00:00:00 2001
From: chr <chr@mailcom>
Date: 星期六, 02 十一月 2024 10:56:50 +0800
Subject: [PATCH] 优化程序

---
 PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs b/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs
index 85313f8..8393031 100644
--- a/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs
+++ b/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs
@@ -1,5 +1,6 @@
 锘縰sing System.Collections.Generic;
 using System.ComponentModel;
+using System.IO;
 using System.Runtime.CompilerServices;
 using System.Windows.Controls;
 using PdmSwPlugin.Common.CustomHandler;
@@ -94,13 +95,20 @@
         [PropertySettingAttr(Name = NameConstant.weight, NeedSave = false)]
         public string weight
         {
-            get => _weight;
+            get => CustomPropertyUtil.GetMass(doc);
             set
             {
                 RaiseAndSetIfChanged(ref _weight, value);
             }
         }
 
+        [PropertySettingAttr(Name = NameConstant.weight, NeedInit = false)]
+        public string weightEval
+        {
+            get => doc == null ? null : $"\"SW-璐ㄩ噺@{Path.GetFileName(doc.GetPathName())}\"";
+            set { }
+        }
+
         private string _designer = "";
         [PropertySettingAttr(Name = NameConstant.designer)]
         public string designer

--
Gitblit v1.9.1