| | |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.IO; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Windows.Controls; |
| | | using PdmSwPlugin.Common.CustomHandler; |
| | |
| | | [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 |