From 1894ccc4014d813ea60cf276ac066e5870a82566 Mon Sep 17 00:00:00 2001
From: kingno <30263@KINGNO>
Date: 星期四, 18 九月 2025 13:51:20 +0800
Subject: [PATCH] 简化代码
---
src/Bro.M141.Process/M141Models.cs | 40 +---------------------------------------
1 files changed, 1 insertions(+), 39 deletions(-)
diff --git a/src/Bro.M141.Process/M141Models.cs b/src/Bro.M141.Process/M141Models.cs
index 997c866..8eac0b7 100644
--- a/src/Bro.M141.Process/M141Models.cs
+++ b/src/Bro.M141.Process/M141Models.cs
@@ -7,45 +7,7 @@
namespace Bro.M141.Process
{
- public class CheckPoint : IComplexDisplay
- {
- [Browsable(false)]
- public string Id { get; set; } = Guid.NewGuid().ToString();
-
- [Category("妫�娴嬬偣浣�")]
- [Description("鐐逛綅鍚嶇О")]
- [DisplayName("鐐逛綅鍚嶇О")]
- public string Name { get; set; } = "";
-
- [Category("妫�娴嬬偣浣�")]
- [Description("鐐逛綅鍧愭爣锛屾娴嬬偣浣嶇殑杩愬姩鍧愭爣")]
- [DisplayName("鐐逛綅鍧愭爣")]
- [TypeConverter(typeof(ExpandableObjectConverter))]
- public CustomizedPoint PointPosition { get; set; } = new CustomizedPoint();
-
- [Category("妫�娴嬬偣浣�")]
- [Description("鐐逛綅鍧愭爣锛屾娴嬬偣浣嶇殑Z杞村潗鏍�")]
- [DisplayName("鐐逛綅鍧愭爣Z")]
- public double PointZ { get; set; }
-
- [Category("鏍囧畾璁剧疆")]
- [Description("璇ユ娴嬬偣浣嶇殑鏍囧畾鐭╅樀锛屽浘鍍廢V鍧愭爣杞崲涓哄ぇ鏉垮潗鏍囩郴XY鐨勬爣瀹氱煩闃�")]
- [DisplayName("鐐逛綅鏍囧畾鐭╅樀")]
- [TypeConverter(typeof(SimpleCollectionConvert<double>))]
- [Editor(typeof(SimpleCollectionEditor<double>), typeof(UITypeEditor))]
- public List<double> Matrix { get; set; } = new List<double>();
-
- [Category("鍚敤閰嶇疆")]
- [Description("true锛氬惎鐢ㄨ鐐逛綅 false锛氱鐢ㄨ鐐逛綅")]
- [DisplayName("鐐逛綅鍚敤鏍囧織")]
- public bool IsEnabled { get; set; } = true;
-
- public string GetDisplayText()
- {
- return $"{(IsEnabled ? "" : "绂佺敤 ")}{Name} {PointPosition.GetDisplayText()}";
- }
- }
-
+
public enum ContourEdge
{
X,
--
Gitblit v1.8.0