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.TestResult/ManualDebugWindow.xaml.cs |   95 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 95 insertions(+), 0 deletions(-)

diff --git a/Plugin.TestResult/ManualDebugWindow.xaml.cs b/Plugin.TestResult/ManualDebugWindow.xaml.cs
new file mode 100644
index 0000000..68f8c3d
--- /dev/null
+++ b/Plugin.TestResult/ManualDebugWindow.xaml.cs
@@ -0,0 +1,95 @@
+锘縰sing HMI.Util;
+using Panuon.WPF.UI;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.IO;
+using System.Windows;
+using Util.ManualDebug;
+
+namespace Plugin.TestResult
+{
+    /// <summary>
+    /// ManualDebugWindow.xaml 鐨勪氦浜掗�昏緫
+    /// </summary>
+    public partial class ManualDebugWindow : WindowX
+    {
+
+        private OldManualDebug debug;
+
+        public ManualDebugWindow(string seqPath, string modelPath)
+        {
+            DataContext = this;
+            InitializeComponent();
+            debug = (OldManualDebug)sb.Children[0];
+            ReadBtns();
+            //List<BtnConfig> settings = new List<BtnConfig> { new BtnConfig { Title = "涓婄數婵�娲�", Name = "Active" } };
+            debug.seqPath = seqPath;
+            debug.modelPath = modelPath;
+        }
+
+        private string ovenName;
+        public string OvenName
+        {
+            get => ovenName;
+            set
+            {
+                Set(ref ovenName, value);
+            }
+        }
+
+        private string cellName;
+        public string CellName
+        {
+            get => cellName;
+            set
+            {
+                Set(ref cellName, value);
+            }
+        }
+
+        private int ovenIndex;
+        public int OvenIndex
+        {
+            get => ovenIndex;
+            set
+            {
+                Set(ref ovenIndex, value);
+            }
+        }
+
+        private int cellIndex;
+        public int CellIndex
+        {
+            get => cellIndex;
+            set
+            {
+                Set(ref cellIndex, value);
+            }
+        }
+
+        private void ReadBtns()
+        {
+            string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Settings.ini");
+            var map = IniFileHelper.GetKeyValuesBySection(path, "Btns");
+            List<BtnConfig> settings = new List<BtnConfig>();
+            foreach (var kv in map)
+            {
+                settings.Add(new BtnConfig { Title = kv.Key, Name = kv.Value });
+            }
+            debug.RefreshButtons(settings);
+        }
+
+        private void Window_Closing(object sender, CancelEventArgs e)
+        {
+            if (MessageBox.Show("纭畾瑕佸叧闂悧锛�", "鎻愮ず", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
+            {
+                debug.Stop();
+            }
+            else
+            {
+                e.Cancel = true;
+            }
+        }
+    }
+}

--
Gitblit v1.9.1