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 作为历史根节点

---
 Util.ManualDebug/StatusCell.xaml.cs |  104 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 104 insertions(+), 0 deletions(-)

diff --git a/Util.ManualDebug/StatusCell.xaml.cs b/Util.ManualDebug/StatusCell.xaml.cs
new file mode 100644
index 0000000..2649f72
--- /dev/null
+++ b/Util.ManualDebug/StatusCell.xaml.cs
@@ -0,0 +1,104 @@
+锘縰sing System.ComponentModel;
+using System.Globalization;
+using System.Runtime.CompilerServices;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+
+namespace Util.ManualDebug
+{
+    public enum CellStatus
+    {
+        Testing = 0,
+        OK = 1,
+        NG = 2,
+        Closed = 99,
+        Open = 100,
+        Waiting = 101
+    }
+
+    public class CellStatusConverter : IValueConverter
+    {
+        public static CellStatusConverter Instance = new CellStatusConverter();
+
+        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            if (value is bool b)
+            {
+                return b ? CellStatus.Open : CellStatus.Closed;
+            }
+            return CellStatus.Closed;
+        }
+
+        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            return null;
+        }
+    }
+
+    /// <summary>
+    /// ManualCell.xaml 鐨勪氦浜掗�昏緫
+    /// </summary>
+    public partial class StatusCell : UserControl, INotifyPropertyChanged
+    {
+        #region ...
+        public event PropertyChangedEventHandler PropertyChanged;
+
+        protected void Set([CallerMemberName] string name = null)
+        {
+
+            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
+        }
+
+        protected void Set<T>(ref T old, T @new, [CallerMemberName] string propertyName = null)
+        {
+            old = @new;
+            if (propertyName != null)
+            {
+                Set(propertyName);
+            }
+        }
+        #endregion
+        private string title;
+        public string Title
+        {
+            get => title;
+            set
+            {
+                Set(ref title, value);
+            }
+        }
+
+        public static readonly DependencyProperty StatusProperty = DependencyProperty.Register(
+                            "Status",
+                            typeof(CellStatus),
+                            typeof(StatusCell),
+                            new PropertyMetadata(CellStatus.Closed));
+
+        public CellStatus Status
+        {
+            get => (CellStatus)GetValue(StatusProperty);
+            set
+            {
+                SetValue(StatusProperty, value);
+            }
+        }
+
+
+        private int index;
+        public int Index
+        {
+            get => index;
+            set
+            {
+                Set(ref index, value);
+            }
+        }
+
+        public StatusCell()
+        {
+            this.DataContext = this;
+            InitializeComponent();
+        }
+    }
+}

--
Gitblit v1.9.1