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.IntegrationTest/MainWindow.xaml | 136 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 136 insertions(+), 0 deletions(-) diff --git a/Plugin.IntegrationTest/MainWindow.xaml b/Plugin.IntegrationTest/MainWindow.xaml new file mode 100644 index 0000000..3e3aece --- /dev/null +++ b/Plugin.IntegrationTest/MainWindow.xaml @@ -0,0 +1,136 @@ +<Window x:Class="Plugin.IntegrationTest.MainWindow" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + Title="浠櫒浠〃娉ㄥ唽 & 纭欢璋冭瘯 - 闆嗘垚娴嬭瘯鐜" + Height="800" Width="1300" + WindowStartupLocation="CenterScreen" + WindowState="Maximized" + Background="#F5F5F5" + Loaded="Window_Loaded" Closing="Window_Closing"> + <Grid Margin="8"> + <Grid.RowDefinitions> + <RowDefinition Height="Auto"/> + <RowDefinition Height="*"/> + <RowDefinition Height="Auto"/> + </Grid.RowDefinitions> + + <!-- 椤堕儴鐘舵�佹爮 --> + <Border Grid.Row="0" Background="#E3F2FD" CornerRadius="4" Padding="12,6" Margin="0,0,0,6"> + <DockPanel> + <TextBlock Text="闆嗘垚娴嬭瘯鐜" FontSize="16" FontWeight="Bold" + VerticalAlignment="Center" Foreground="#1565C0"/> + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" DockPanel.Dock="Right"> + <TextBlock x:Name="txtStatus" Text="灏辩华" FontSize="13" + VerticalAlignment="Center" Foreground="#666" Margin="0,0,12,0"/> + <Button x:Name="btnRun" Content="鈻� 杩愯鑷姩鍖栨祴璇�" Width="150" Height="32" + FontSize="13" FontWeight="SemiBold" + Background="#4CAF50" Foreground="White" BorderThickness="0" + Cursor="Hand" Click="BtnRun_Click" Margin="0,0,6,0"/> + <Button x:Name="btnReset" Content="閲嶇疆鏁版嵁" Width="90" Height="32" + FontSize="13" Click="BtnReset_Click" Margin="0,0,6,0" + Background="#FF9800" Foreground="White" BorderThickness="0" Cursor="Hand"/> + <Button x:Name="btnClear" Content="娓呯┖鏃ュ織" Width="80" Height="32" + FontSize="13" Click="BtnClear_Click"/> + </StackPanel> + </DockPanel> + </Border> + + <!-- 涓� TabControl --> + <TabControl x:Name="mainTabs" Grid.Row="1" Margin="0,4"> + <!-- Tab 1: 鑷姩鍖栨祴璇� --> + <TabItem Header=" 鑷姩鍖栨祴璇� " FontSize="13"> + <Grid> + <Grid.RowDefinitions> + <RowDefinition Height="Auto"/> + <RowDefinition Height="*"/> + </Grid.RowDefinitions> + <ProgressBar x:Name="progressBar" Height="6" Minimum="0" Maximum="100" Value="0" Margin="4"/> + <TextBox x:Name="txtLog" Grid.Row="1" + IsReadOnly="True" VerticalScrollBarVisibility="Auto" + HorizontalScrollBarVisibility="Auto" + FontFamily="Consolas" FontSize="12.5" + Background="#1E1E1E" Foreground="#D4D4D4" + BorderThickness="1" BorderBrush="#CCC" + Padding="8" TextWrapping="NoWrap" + AcceptsReturn="True" VerticalContentAlignment="Top"/> + </Grid> + </TabItem> + + <!-- Tab 2: 浠櫒浠〃娉ㄥ唽 --> + <TabItem Header=" 浠櫒浠〃娉ㄥ唽 " FontSize="13"> + <Border x:Name="deviceConfigHost" Background="White"/> + </TabItem> + + <!-- Tab 3: 纭欢璋冭瘯 --> + <TabItem Header=" 纭欢璋冭瘯 " FontSize="13"> + <Border x:Name="deviceDebugHost" Background="White"/> + </TabItem> + + <!-- Tab 4: CAN 妯℃嫙鍣� --> + <TabItem Header=" CAN 妯℃嫙鍣� " FontSize="13"> + <Grid> + <Grid.RowDefinitions> + <RowDefinition Height="Auto"/> + <RowDefinition Height="*"/> + </Grid.RowDefinitions> + + <!-- 妯℃嫙鍣ㄦ帶鍒堕潰鏉� --> + <Border Grid.Row="0" Background="#FFF3E0" CornerRadius="4" Padding="12,8" Margin="4"> + <Grid> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto"/> + <ColumnDefinition Width="*"/> + </Grid.ColumnDefinitions> + <Grid.RowDefinitions> + <RowDefinition Height="Auto"/> + <RowDefinition Height="Auto"/> + <RowDefinition Height="Auto"/> + </Grid.RowDefinitions> + + <TextBlock Grid.Row="0" Grid.Column="0" Text="鎬荤嚎鐘舵��:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,8,4"/> + <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center"> + <Ellipse x:Name="canBusIndicator" Width="14" Height="14" Fill="#9E9E9E" Margin="0,0,8,0"/> + <TextBlock x:Name="canBusStatusText" Text="鏈惎鍔�" FontSize="13"/> + </StackPanel> + + <TextBlock Grid.Row="1" Grid.Column="0" Text="鎬荤嚎鍚嶇О:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,8,4"/> + <TextBox Grid.Row="1" Grid.Column="1" x:Name="canBusNameInput" Text="CAN_BUS_1" + VerticalContentAlignment="Center" Padding="6,4" Margin="0,0,80,4" Width="200" HorizontalAlignment="Left"/> + + <TextBlock Grid.Row="2" Grid.Column="0" Text="鎺у埗:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,8,0"/> + <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal"> + <Button x:Name="canStartBtn" Content="鍚姩鎬荤嚎" Width="100" Height="30" Margin="0,0,8,0" + Click="CanStartBtn_Click" Background="#4CAF50" Foreground="White" + BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/> + <Button x:Name="canStopBtn" Content="鍋滄鎬荤嚎" Width="100" Height="30" Margin="0,0,8,0" + Click="CanStopBtn_Click" Background="#F44336" Foreground="White" + BorderThickness="0" Cursor="Hand" FontWeight="SemiBold" IsEnabled="False"/> + <Button x:Name="canResetBtn" Content="閲嶇疆鎵�鏈�" Width="100" Height="30" + Click="CanResetBtn_Click" Background="#9E9E9E" Foreground="White" + BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/> + </StackPanel> + </Grid> + </Border> + + <!-- CAN 璋冭瘯闈㈡澘 --> + <Border x:Name="canSimulatorHost" Grid.Row="1" Background="White" Margin="4"/> + </Grid> + </TabItem> + </TabControl> + + <!-- 搴曢儴缁撴灉鏍� --> + <Border Grid.Row="2" Padding="12,6" Background="#FAFAFA" + BorderBrush="#DDD" BorderThickness="1" CornerRadius="4"> + <DockPanel> + <TextBlock x:Name="txtSummary" FontSize="13" FontWeight="SemiBold" + VerticalAlignment="Center" Foreground="#333" Text="灏辩华 - 璇峰垏鎹㈠埌瀵瑰簲 Tab 杩涜鎵嬪姩娴嬭瘯"/> + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" DockPanel.Dock="Right"> + <TextBlock x:Name="txtPassed" FontSize="13" Foreground="#4CAF50" + Margin="0,0,16,0" VerticalAlignment="Center"/> + <TextBlock x:Name="txtFailed" FontSize="13" Foreground="#F44336" + VerticalAlignment="Center"/> + </StackPanel> + </DockPanel> + </Border> + </Grid> +</Window> -- Gitblit v1.9.1