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/Util/Step2EPO.cs |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/Plugin.SeqEditor/Util/Step2EPO.cs b/Plugin.SeqEditor/Util/Step2EPO.cs
new file mode 100644
index 0000000..21fa9c3
--- /dev/null
+++ b/Plugin.SeqEditor/Util/Step2EPO.cs
@@ -0,0 +1,51 @@
+锘縰sing System.Windows.Controls;
+using Plugin.SeqEditor.Constant;
+using Plugin.SeqEditor.Entity;
+using Plugin.SeqEditor.Entity.EditablePO;
+using Plugin.SeqEditor.SettingPanel;
+
+namespace Plugin.SeqEditor.Util
+{
+    public class StepUI2EPO
+    {
+        public static object Convert2EPO(StepUI step)
+        {
+            switch (step.Type)
+            {
+                case StepTypeStr.StringValueTest:
+                    return new StringValTestEPO(step);
+                default:
+                    return null;
+            }
+        }
+
+        public static UserControl Convert2EditPanel(StepUI step)
+        {
+            if (step == null) return null;
+            object epo;
+            switch (step.Type)
+            {
+                case StepTypeStr.StringValueTest:
+                    epo = new StringValTestEPO(step);
+                    return new StringValTestPanel((StringValTestEPO)epo);
+                case StepTypeStr.NI_Wait:
+                    epo = new WaitEPO(step);
+                    return new WaitPanel((WaitEPO)epo);
+                case StepTypeStr.NumericLimitTest:
+                    epo = new NumValTestEPO(step);
+                    return new NumValTestPanel((NumValTestEPO)epo);
+                case StepTypeStr.SequenceCall:
+                    return new CallSeqPanel(step);
+                //    return new ActionPanel(step);
+                //case StepTypeStr.SequenceCall:
+                //    return new ActionPanel(step);
+                //case StepTypeStr.Action:
+                //    if (step.Adapter == AdapterName.VICall)
+                //        return new ViPanel(new ViCallEPO(step));
+                //    else return new ActionPanel(step);
+                default:
+                    return new ActionPanel(step);
+            }
+        }
+    }
+}

--
Gitblit v1.9.1