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.JarUI/JarCell.xaml.cs | 84 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 84 insertions(+), 0 deletions(-)
diff --git a/Plugin.JarUI/JarCell.xaml.cs b/Plugin.JarUI/JarCell.xaml.cs
new file mode 100644
index 0000000..6c612c5
--- /dev/null
+++ b/Plugin.JarUI/JarCell.xaml.cs
@@ -0,0 +1,84 @@
+锘縰sing System.ComponentModel;
+using System.Runtime.CompilerServices;
+using System.Windows.Controls;
+
+namespace Plugin.JarUI
+{
+ /// <summary>
+ /// JarCell.xaml 鐨勪氦浜掗�昏緫
+ /// </summary>
+ public partial class JarCell : 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
+
+ public JarCell(int index)
+ {
+ DataContext = this;
+ Index = index;
+ Name = $"Socket_{index + 1}";
+ SnText = $"SN{index + 1}";
+ InitializeComponent();
+ }
+
+ #region Properties
+ public int Index { get; private set; }
+ public string Name { get; private set; }
+
+ private string _status = "Ready";
+
+ public string Status
+ {
+ get { return _status; }
+ set { Set(ref _status, value); }
+ }
+
+ private string _info = "";
+
+ public string Info
+ {
+ get { return _info; }
+ set { Set(ref _info, value); }
+ }
+
+ private string _snText;
+
+ public string SnText
+ {
+ get { return _snText; }
+ set { Set(ref _snText, value); }
+ }
+ #endregion
+
+ public void SetStatus(string status)
+ {
+ Status = status;
+ }
+
+ public void SetInfo(string info)
+ {
+ Info = info;
+ }
+
+ public void SetSn(string sn)
+ {
+ TbSn.Text = sn;
+ }
+ }
+}
--
Gitblit v1.9.1