alielie
2025-06-12 c1c3772a11b1f3fbad8846cc714120771d85fa53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
using HMI.Core.Util;
using NationalInstruments.TestStand.Interop.API;
 
namespace Plugin.SeqEditor.Util
{
    public class ItemData
    {
        public string DisplayName { get; private set; }
        public string DataValue { get; private set; }
 
        public ItemData(string displayName, string dataValue)
        {
            this.DisplayName = displayName;
            this.DataValue = dataValue;
        }
    }
 
 
    public abstract class StringCompTypeData
    {
        public static readonly ItemData None =
            new(LangUtil.Get("se.data.none"), "LOG");
 
        public static readonly ItemData SCCS =
            new(LangUtil.Get("se.strComp.SCCS"), "CaseSensitive");
        public static readonly ItemData SCIC =
            new(LangUtil.Get("se.strComp.SCIC"), "IgnoreCase");
 
        public static readonly ItemData RECS =
            new(LangUtil.Get("se.strComp.RECS"), "RegularExpressionCaseSensitive");
        public static readonly ItemData REIC =
            new(LangUtil.Get("se.strComp.REIC"), "IgnoreCase");
 
        public static readonly List<ItemData> ItemSource =
            new List<ItemData> {
                None,SCCS,SCIC,//RECS,REIC
            };
    }
 
    public abstract class FilterTypeData
    {
        public static readonly ItemData Wait =
            new(LangUtil.Get("Wait"), "NI_Wait");
 
        public static readonly ItemData Action =
            new(LangUtil.Get("Action"), "Action");
        public static readonly ItemData StrValTest =
            new(LangUtil.Get("String Val Test"), "StringValueTest");
 
        public static readonly ItemData NumValTest =
            new(LangUtil.Get("Numeric Limit Test"), "NumericLimitTest");
 
        public static readonly ItemData RECS =
            new(LangUtil.Get("SequenceCall"), "SequenceCall");
 
        public static readonly List<ItemData> ItemSource =
            new List<ItemData> {
                Wait,Action,StrValTest,//RECS,REIC
            };
    }
 
    public abstract class NumCompTypeData
    {
 
        public static readonly ItemData EQ =
            new("= Low", "EQ");
        public static readonly ItemData NE =
            new("!= Low", "NE");
 
        public static readonly ItemData GT =
            new("> Low", "GT");
 
        public static readonly ItemData LT =
            new("< Low", "LT");
 
        public static readonly ItemData GE =
            new(">= Low", "GE");
 
        public static readonly ItemData LE =
            new("<= Low", "LE");
 
        public static readonly ItemData GTLT =
            new("> Low,< High", "GTLT");
 
        public static readonly ItemData GELE =
            new(">=Low,<= High", "GELE");
        public static readonly ItemData GELT =
            new(">= Low,< High", "GELT");
        public static readonly ItemData GTLE =
            new("> Low,<= High", "GTLE");
 
 
        public static readonly ItemData LTGT =
            new("< Low OR > High", "LTGT");
        public static readonly ItemData LEGE =
            new("<= Low OR >= High", "LEGE");
        public static readonly ItemData LEGT =
            new("<= Low OR > High", "LEGT");
        public static readonly ItemData LTGE =
            new("< Low OR >= High", "LTGE");
 
        public static readonly List<ItemData> ItemSource =
            new List<ItemData> {
                EQ,NE,GT,LT,GE,LE,GTLT,GELE,GELT,GTLE,LTGT,LEGE,LEGT,LTGE
            };
    }
 
    public abstract class RunModeData
    {
        public static readonly ItemData Normal =
            new(LangUtil.Get("se.normal"), "Normal");
 
        public static readonly ItemData Skip =
            new(LangUtil.Get("se.skip"), "Skip");
 
        public static readonly ItemData ForcePass =
            new(LangUtil.Get("se.pass"), "Pass");
 
        public static readonly ItemData ForceFail =
            new(LangUtil.Get("se.fail"), "Fail");
 
        public static readonly List<ItemData> ItemSource =
            new List<ItemData> {
                Normal,Skip,ForcePass,ForceFail
            };
    }
 
    public abstract class StepAdapterData
    {
        public static readonly ItemData LabView = new("LabVIEW", AdapterKeyNames.FlexLVAdapterKeyName);
        public static readonly ItemData LabWindows = new("LabWindows/CVI",
            AdapterKeyNames.FlexCVIAdapterKeyName);
        public static readonly ItemData CCPlus = new("C/C++ DLL", AdapterKeyNames.FlexCAdapterKeyName);
        public static readonly ItemData DotNet = new(".NET", AdapterKeyNames.DotNetAdapterKeyname);
        public static readonly ItemData ActiveX = new("ActiveX/COM", AdapterKeyNames.AutomationAdapterKeyName);
        public static readonly ItemData None = new("None", AdapterKeyNames.NoneAdapterKeyName);
        public static readonly ItemData LabViewNGX = new("LabVIEW NXG", AdapterKeyNames.LabVIEWNXGAdapterKeyName);
        public static readonly ItemData Python = new("Python", AdapterKeyNames.PythonAdapterKeyName);
        public static readonly ItemData SequenceCall =
            new("SequenceCall", AdapterKeyNames.SequenceAdapterKeyName);
 
        public static readonly List<ItemData> ItemSource =
            new List<ItemData> {
                LabView,LabWindows,CCPlus,DotNet,ActiveX,None,LabViewNGX,Python,SequenceCall
            };
    }
}