From d1b72117058f1131046b6aa3add8e3ccfae033d8 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 10:36:07 +0800
Subject: [PATCH] docs: CAN 模拟器独立 TCP 服务进程设计规格(统一 CanDeviceDriver + 双工推送协议)

---
 Plugin.TestResult/ViewControl.xaml |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/Plugin.TestResult/ViewControl.xaml b/Plugin.TestResult/ViewControl.xaml
index 9e29eb9..0b2de18 100644
--- a/Plugin.TestResult/ViewControl.xaml
+++ b/Plugin.TestResult/ViewControl.xaml
@@ -41,11 +41,24 @@
             <ColumnDefinition Width="*"/>
         </Grid.ColumnDefinitions>-->
         <local:TestResultView x:Name="testResultView" Grid.Row="1" Grid.Column="0" Loaded="testResultView_Loaded" />
-        <DockPanel Margin="10,0" Grid.Row="0" Grid.Column="1" Background="#FFF" VerticalAlignment="Center">
+        <DockPanel Margin="10,0" Grid.Row="0" Grid.Column="1" LastChildFill="False" Background="#FFF" VerticalAlignment="Center">
             <pu:FormGroup DockPanel.Dock="Right">
                 <StackPanel Orientation="Horizontal" VerticalAlignment="Center" dp:StackPanelHelper.ChildSpace="20">
-                    <Button x:Name="btnStart" Click="Start_Click" Style="{StaticResource SuccessButton}"
-                       Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.Start}"/>
+                    <Button x:Name="btnStart" Click="Start_Click"
+                       Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.Start}">
+                        <Button.Style>
+                            <Style TargetType="Button" BasedOn="{StaticResource SuccessButton}">
+                                <Style.Triggers>
+                                    <DataTrigger Binding="{Binding EnableManualDebug}" Value="True">
+                                        <Setter Property="IsEnabled" Value="False"/>
+                                    </DataTrigger>
+                                    <DataTrigger Binding="{Binding IsRunning}" Value="True">
+                                        <Setter Property="IsEnabled" Value="False"/>
+                                    </DataTrigger>
+                                </Style.Triggers>
+                            </Style>
+                        </Button.Style>
+                    </Button>
 
                     <Button x:Name="btnStop" Click="Stop_Click" Style="{StaticResource DangerButton}"
                             Width="100" FontSize="14" Padding="0" Height="30"
@@ -56,7 +69,7 @@
                     Content="{DynamicResource Ts.BtnClearNum}"/>
 
                     <Button x:Name="scannerSetting" Click="ScannerSetting_Click" Style="{StaticResource PrimaryButton}"
-                            Width="100" FontSize="14" Padding="0" Height="30" Content="鎵爜鏋缃�" Cursor="Hand"/>
+                            Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.ScannerSetting}" Cursor="Hand"/>
 
                     <!--<Button x:Name="btnScan1" Click="Scan_Click_1" Style="{StaticResource PrimaryButton}"
                     Content="{DynamicResource Tr.Zone1Scan}"/>
@@ -72,13 +85,22 @@
                           SelectionChanged="modelSelect_SelectionChanged"/>
             </pu:FormGroup>
 
-            <pu:FormGroup Header="娴嬭瘯绋嬪簭" FontSize="16">
+            <pu:FormGroup Header="{DynamicResource Tr.TestProgram}" FontSize="16">
                 <TextBox IsReadOnly="True" x:Name="tbFileName" Style="{StaticResource EditorTextBoxStyle}" Width="200"
 Height="28" Text="{Binding FileName}"/>
             </pu:FormGroup>
 
             <pu:FormGroup>
-                <std:StdEnableMes DockPanel.Dock="Left" FontSize="20" ValueChanged="StdEnableMes_ValueChanged"/>
+                <std:StdEnableMes DockPanel.Dock="Left" FontSize="20" 
+                                  x:Name="stdEnableMes"
+                                  ValueChanged="StdEnableMes_ValueChanged"/>
+            </pu:FormGroup>
+
+            <pu:FormGroup x:Name="FgEnableManualDebug" Visibility="Collapsed">
+                <CheckBox FontSize="20"
+                          IsChecked="{Binding EnableManualDebug,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
+          VerticalContentAlignment="Center"
+          Content="鎵嬪姩璋冭瘯" />
             </pu:FormGroup>
 
 

--
Gitblit v1.9.1