From fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 17:59:45 +0800
Subject: [PATCH] feat: 集成CAN驱动/模拟器 + 仪器仪表注册/硬件调试模块
---
HMI.UI/Controls/LightBall.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/HMI.UI/Controls/LightBall.cs b/HMI.UI/Controls/LightBall.cs
index d9ffd5c..3cb1c08 100644
--- a/HMI.UI/Controls/LightBall.cs
+++ b/HMI.UI/Controls/LightBall.cs
@@ -12,7 +12,7 @@
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
"Value",
- typeof(bool),
+ typeof(bool?),
typeof(LightBall),
new FrameworkPropertyMetadata(false));
@@ -31,9 +31,9 @@
}
}
- public bool Value
+ public bool? Value
{
- get => (bool)GetValue(ValueProperty);
+ get => (bool?)GetValue(ValueProperty);
set
{
SetValue(ValueProperty, value);
--
Gitblit v1.9.1