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

diff --git a/Plugin.SeqEditor/RowNumberConverter.cs b/Plugin.SeqEditor/RowNumberConverter.cs
new file mode 100644
index 0000000..d3260f7
--- /dev/null
+++ b/Plugin.SeqEditor/RowNumberConverter.cs
@@ -0,0 +1,36 @@
+锘縰sing HMI.UI;
+using Plugin.SeqEditor.Constant;
+using Plugin.SeqEditor.Entity;
+using System.Globalization;
+using System.Windows.Data;
+
+namespace Plugin.SeqEditor
+{
+    public class RowNumberConverter : IValueConverter
+    {
+        public int current = 0;
+        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            if (value is TreeListViewItem row && row.DataContext is StepUI step)
+            {
+                if (step.Type != StepTypeStr.SequenceCall)
+                {
+                    return (++current).ToString();
+                }
+
+                return null;
+            }
+            return null;
+        }
+
+        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            return value;
+        }
+
+        public void Reset()
+        {
+            current = 0;
+        }
+    }
+}

--
Gitblit v1.9.1