From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化
---
Plugin.SeqEditor/Util/ItemData.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/Plugin.SeqEditor/Util/ItemData.cs b/Plugin.SeqEditor/Util/ItemData.cs
index 2ca8896..29c5b7b 100644
--- a/Plugin.SeqEditor/Util/ItemData.cs
+++ b/Plugin.SeqEditor/Util/ItemData.cs
@@ -107,17 +107,18 @@
public abstract class RunModeData
{
+ //LangUtil.Get("se.normal")
public static readonly ItemData Normal =
- new(LangUtil.Get("se.normal"), "Normal");
+ new("Normal", "Normal");
public static readonly ItemData Skip =
- new(LangUtil.Get("se.skip"), "Skip");
+ new("Skip", "Skip");
public static readonly ItemData ForcePass =
- new(LangUtil.Get("se.pass"), "Pass");
+ new("Pass", "Pass");
public static readonly ItemData ForceFail =
- new(LangUtil.Get("se.fail"), "Fail");
+ new("Fail", "Fail");
public static readonly List<ItemData> ItemSource =
new List<ItemData> {
@@ -144,4 +145,52 @@
LabView,LabWindows,CCPlus,DotNet,ActiveX,None,LabViewNGX,Python,SequenceCall
};
}
+
+ public abstract class LoopTypeData
+ {
+ public static readonly ItemData None =
+ new("鏃�", "NoLooping");
+ public static readonly ItemData Fixed =
+ new("鍥哄畾娆℃暟寰幆", "FixedNumLoops");
+ public static readonly ItemData PassFailCount =
+ new("PassFailCount", "PassFailCount");
+
+ public static readonly ItemData Custom =
+ new("鑷畾涔�", "Custom");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ None,Fixed,PassFailCount
+ };
+ }
+
+ public abstract class LoopConditionData
+ {
+ public static readonly ItemData LT =
+ new("<", "<");
+ public static readonly ItemData LE =
+ new("<=", "<=");
+ public static readonly ItemData GT =
+ new(">", ">");
+
+ public static readonly ItemData GE =
+ new(">=", ">=");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ LT,LE, GT, GE
+ };
+ }
+
+ public abstract class LoopCondition2Data
+ {
+ public static readonly ItemData PASS =
+ new("pass", "pass");
+ public static readonly ItemData FAIL =
+ new("fail", "fail");
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ PASS,FAIL
+ };
+ }
}
--
Gitblit v1.9.1