From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
Plugin.SeqEditor/Entity/EditablePO/NumValTestEPO.cs | 68 ++++++++++++++++++++++++++++++++++
1 files changed, 68 insertions(+), 0 deletions(-)
diff --git a/Plugin.SeqEditor/Entity/EditablePO/NumValTestEPO.cs b/Plugin.SeqEditor/Entity/EditablePO/NumValTestEPO.cs
new file mode 100644
index 0000000..ee71906
--- /dev/null
+++ b/Plugin.SeqEditor/Entity/EditablePO/NumValTestEPO.cs
@@ -0,0 +1,68 @@
+锘縰sing NationalInstruments.TestStand.Interop.API;
+
+namespace Plugin.SeqEditor.Entity.EditablePO
+{
+ public class NumValTestEPO : BaseEPO
+ {
+ public Step Step { get; private set; }
+ public PropertyObject PropertyObject { get; private set; }
+
+ public NumValTestEPO(StepUI stepUI)
+ {
+ StepUI = stepUI;
+ StepUI.PropertyChanged += StepUI_PropertyChanged;
+
+ Step = stepUI?.step;
+ PropertyObject = Step?.AsPropertyObject();
+ }
+
+ private void StepUI_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
+ {
+ if (e.PropertyName == "Low" || e.PropertyName == "High")
+ {
+ OnPropertyChanged(e.PropertyName);
+ }
+ }
+
+ ~NumValTestEPO()
+ {
+ if (StepUI != null)
+ {
+ StepUI.PropertyChanged -= StepUI_PropertyChanged;
+ }
+ }
+
+ public string ComparisonType
+ {
+ get => PropertyObject?.GetValString("Comp", 0);
+ set
+ {
+ if (PropertyObject != null)
+ {
+ PropertyObject.SetValString("Comp", 0, value);
+ CustomPropertyChanged(nameof(ComparisonType));
+ }
+ }
+ }
+
+ public string Low
+ {
+ get => StepUI?.Low?.ToString();
+ set
+ {
+ double.TryParse(value, out var dob);
+ StepUI.Low = value;
+ }
+ }
+
+ public string High
+ {
+ get => StepUI?.High?.ToString();
+ set
+ {
+ double.TryParse(value, out var dob);
+ StepUI.High = dob;
+ }
+ }
+ }
+}
--
Gitblit v1.9.1