From 559890c482f5973f06aafdfec9550fee5ba3c7f2 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 17:02:15 +0800
Subject: [PATCH] feat: CAN 模拟器 TCP 化 + 多设备并发调试 + 后台生命周期管理

---
 Plugin.TsExecution/SingleControl.xaml |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Plugin.TsExecution/SingleControl.xaml b/Plugin.TsExecution/SingleControl.xaml
index 8a31373..4bbacd5 100644
--- a/Plugin.TsExecution/SingleControl.xaml
+++ b/Plugin.TsExecution/SingleControl.xaml
@@ -12,6 +12,7 @@
              xmlns:sys="clr-namespace:System;assembly=mscorlib"
              Loaded="UserControl_Loaded"
              Background="#ccc6c7"
+             PreviewMouseRightButtonDown="control_PreviewMouseRightButtonDown"
              FontSize="{Binding ActualHeight,RelativeSource={RelativeSource AncestorType=UserControl}, 
 Converter={StaticResource hfc}, ConverterParameter='12,816'}"
              x:Name="control"
@@ -125,8 +126,7 @@
                 </Label>
 
                 <Label Content="{Binding Status}" VerticalAlignment="Center" VerticalContentAlignment="Center"
-                       Padding="0"
-                       Margin="0"
+                       Padding="0" Margin="0"
                        HorizontalContentAlignment="Center"
                        Foreground="#FFF"
                        FontWeight="Bold"
@@ -456,7 +456,13 @@
 VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeCount}"/>
                         <Label Padding="0" FontSize="12"  Margin="0,0,15,0"
 VerticalAlignment="Center"
-VerticalContentAlignment="Center" Content="{Binding ProbeCount}"/>
+VerticalContentAlignment="Center">
+                            <TextBlock>
+                                <Run Text="{Binding ProbeCount}"/>
+                                <Run Text="/"/>
+                                <Run Text="{Binding ProbeWarn,Mode=OneWay}"/>
+                            </TextBlock>
+                        </Label>
 
                         <StackPanel x:Name="probeWarnPanel" Orientation="Horizontal" Visibility="Collapsed">
                             <Label x:Name="alarmLabel" Padding="0" FontSize="12" 
@@ -464,7 +470,7 @@
 VerticalContentAlignment="Center" Content="{DynamicResource Ts.ProbeAlarmCount}"/>
                             <Label x:Name="alarmValue" Padding="0" FontSize="12" 
 VerticalAlignment="Center"
-VerticalContentAlignment="Center" Content="{Binding ProbeWarn}"/>
+VerticalContentAlignment="Center" Content="{Binding ProbeWarn,Mode=OneWay}"/>
                         </StackPanel>
 
                         <Button FontSize="12" Style="{StaticResource LinkButton}" 

--
Gitblit v1.9.1