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/SettingPanel/LoopPanel.xaml.cs |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/Plugin.SeqEditor/SettingPanel/LoopPanel.xaml.cs b/Plugin.SeqEditor/SettingPanel/LoopPanel.xaml.cs
new file mode 100644
index 0000000..95c660f
--- /dev/null
+++ b/Plugin.SeqEditor/SettingPanel/LoopPanel.xaml.cs
@@ -0,0 +1,60 @@
+锘縰sing CommunityToolkit.Mvvm.ComponentModel;
+using NationalInstruments.TestStand.Interop.API;
+using Plugin.SeqEditor.Entity;
+using Plugin.SeqEditor.Util;
+using System.ComponentModel;
+using System.Windows.Controls;
+
+namespace Plugin.SeqEditor.SettingPanel
+{
+    /// <summary>
+    /// CommonProperty.xaml 鐨勪氦浜掗�昏緫
+    /// </summary>
+    [INotifyPropertyChanged]
+    public partial class LoopPanel : UserControl
+    {
+        public event EventHandler SettingChanged;
+
+        private StepUI stepUI;
+        public StepUI StepUI
+        {
+            get => stepUI;
+            set
+            {
+                this.stepUI = stepUI;
+                this.step = stepUI.step;
+                propertyObject = this.step?.AsPropertyObject();
+                this.DataContext = stepUI;
+            }
+        }
+
+        public Step step;
+        public PropertyObject propertyObject;
+
+        protected void CustomPropertyChanged(string name)
+        {
+            OnPropertyChanged(name);
+            SettingChanged?.Invoke(this, EventArgs.Empty);
+        }
+
+        public LoopPanel()
+        {
+            InitializeComponent();
+            CbLoopType.ItemsSource = LoopTypeData.ItemSource;
+            CBLoopCondition.ItemsSource = LoopConditionData.ItemSource;
+            CBLoopCondition2.ItemsSource = LoopCondition2Data.ItemSource;
+        }
+
+        public LoopPanel(StepUI stepUI)
+        {
+            this.stepUI = stepUI;
+            this.step = stepUI.step;
+            propertyObject = this.step?.AsPropertyObject();
+            this.DataContext = stepUI;
+            InitializeComponent();
+            CbLoopType.ItemsSource = LoopTypeData.ItemSource;
+            CBLoopCondition.ItemsSource = LoopConditionData.ItemSource;
+            CBLoopCondition2.ItemsSource = LoopCondition2Data.ItemSource;
+        }
+    }
+}

--
Gitblit v1.9.1