From d0ded5cd9bf5070a120bad58b5be21fe2ac6a4ff Mon Sep 17 00:00:00 2001
From: C3032 <C3032@BC3032>
Date: 星期六, 20 十二月 2025 16:41:09 +0800
Subject: [PATCH] test

---
 IDViewer_2D/MainWindow.xaml |  915 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 915 insertions(+), 0 deletions(-)

diff --git a/IDViewer_2D/MainWindow.xaml b/IDViewer_2D/MainWindow.xaml
new file mode 100644
index 0000000..58fe5ca
--- /dev/null
+++ b/IDViewer_2D/MainWindow.xaml
@@ -0,0 +1,915 @@
+锘�<Window x:Class="SmartScanner.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:SmartScanner"
+        xmlns:Properties="clr-namespace:SmartScanner.Properties"
+        mc:Ignorable="d"
+        Title="SmartScanner" Height="768" Width="1240">
+    <Grid Background="#3C3C3C">
+        <Grid.Resources>
+            <Style x:Key="SimpleLabeledToggleSwitchStyle" TargetType="{x:Type ToggleButton}">
+                <Setter Property="Background" Value="#E0E0E0"/>
+                <Setter Property="Foreground" Value="White"/>
+                <Setter Property="BorderBrush" Value="Transparent"/>
+                <Setter Property="BorderThickness" Value="0"/>
+                <Setter Property="Template">
+                    <Setter.Value>
+                        <ControlTemplate TargetType="{x:Type ToggleButton}">
+                            <Grid>
+                                <VisualStateManager.VisualStateGroups>
+                                    <!-- 浠呬繚鐣橮ressed鍜孌isabled鐘舵�� -->
+                                    <VisualStateGroup x:Name="CommonStates">
+                                        <VisualState x:Name="Normal"/>
+                                        <VisualState x:Name="MouseOver">
+                                            <Storyboard>
+                                                <DoubleAnimation Storyboard.TargetName="SwitchThumb"
+                         Storyboard.TargetProperty="Opacity"
+                         To="0.8" Duration="0:0:0.1"/>
+                                            </Storyboard>
+                                        </VisualState>
+                                        <VisualState x:Name="Pressed">
+                                            <Storyboard>
+                                                <!-- 鎸変笅鏃剁殑婊戝潡鏀惧ぇ鏁堟灉 -->
+                                                <DoubleAnimation Storyboard.TargetName="SwitchThumb"
+                                                     Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
+                                                     To="1.2" Duration="0:0:0.1"/>
+                                                <DoubleAnimation Storyboard.TargetName="SwitchThumb"
+                                                     Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"
+                                                     To="1.2" Duration="0:0:0.1"/>
+                                            </Storyboard>
+                                        </VisualState>
+                                        <VisualState x:Name="Disabled">
+                                            <Storyboard>
+                                                <ColorAnimation Storyboard.TargetName="SwitchTrack"
+                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
+                                                    To="#EEEEEE" Duration="0"/>
+                                                <ColorAnimation Storyboard.TargetName="SwitchThumb"
+                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
+                                                    To="#BDBDBD" Duration="0"/>
+                                                <ColorAnimation Storyboard.TargetName="TextLabel"
+                                                    Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"
+                                                    To="#BDBDBD" Duration="0"/>
+                                            </Storyboard>
+                                        </VisualState>
+                                    </VisualStateGroup>
+
+                                    <!-- 寮�鍏崇姸鎬侊紙淇濇寔涓嶅彉锛� -->
+                                    <VisualStateGroup x:Name="CheckStates">
+                                        <VisualState x:Name="Checked">
+                                            <Storyboard>
+                                                <ThicknessAnimation Storyboard.TargetName="SwitchThumb"
+                                                       Storyboard.TargetProperty="Margin"
+                                                       To="26,0,0,0" Duration="0:0:0.2"/>
+                                                <ColorAnimation Storyboard.TargetName="SwitchTrack"
+                                                   Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
+                                                   To="#4CAF50" Duration="0:0:0.2"/>
+                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextLabel" 
+                                                                   Storyboard.TargetProperty="Text">
+                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="鍗曠偣ON"/>
+                                                </ObjectAnimationUsingKeyFrames>
+                                                <ColorAnimation Storyboard.TargetName="TextLabel"
+                                                   Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"
+                                                   To="#4CAF50" Duration="0:0:0.2"/>
+                                            </Storyboard>
+                                        </VisualState>
+                                        <VisualState x:Name="Unchecked">
+                                            <Storyboard>
+                                                <ThicknessAnimation Storyboard.TargetName="SwitchThumb"
+                                                       Storyboard.TargetProperty="Margin"
+                                                       To="0,0,0,0" Duration="0:0:0.2"/>
+                                                <ColorAnimation Storyboard.TargetName="SwitchTrack"
+                                                   Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
+                                                   To="#E0E0E0" Duration="0:0:0.2"/>
+                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextLabel" 
+                                                                   Storyboard.TargetProperty="Text">
+                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="鍗曠偣OFF"/>
+                                                </ObjectAnimationUsingKeyFrames>
+                                                <ColorAnimation Storyboard.TargetName="TextLabel"
+                                                   Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"
+                                                   To="#757575" Duration="0:0:0.2"/>
+                                            </Storyboard>
+                                        </VisualState>
+                                    </VisualStateGroup>
+                                </VisualStateManager.VisualStateGroups>
+
+                                <Grid.ColumnDefinitions>
+                                    <ColumnDefinition Width="Auto"/>
+                                    <ColumnDefinition Width="*"/>
+                                </Grid.ColumnDefinitions>
+
+                                <!-- 寮�鍏宠建閬� -->
+                                <Border x:Name="SwitchTrack"
+                            Grid.Column="0"
+                            Background="{TemplateBinding Background}"
+                            CornerRadius="10"
+                            Width="50"
+                            Height="24"
+                            Margin="0,0,10,0">
+                                    <Border x:Name="SwitchThumb"
+                                Background="{TemplateBinding Foreground}"
+                                CornerRadius="10"
+                                Width="24"
+                                Height="24"
+                                HorizontalAlignment="Left"
+                                Margin="0,0,0,0">
+                                        <Border.RenderTransform>
+                                            <TransformGroup>
+                                                <ScaleTransform/>
+                                            </TransformGroup>
+                                        </Border.RenderTransform>
+                                    </Border>
+                                </Border>
+
+                                <!-- 鏂囧瓧鏍囩 -->
+                                <TextBlock x:Name="TextLabel"
+                               Grid.Column="1"
+                               Text="OFF"
+                               VerticalAlignment="Center"
+                               Foreground="#757575"
+                               FontWeight="SemiBold"/>
+                            </Grid>
+
+                            <ControlTemplate.Triggers>
+                                <Trigger Property="IsEnabled" Value="False">
+                                    <Setter TargetName="SwitchTrack" Property="Opacity" Value="0.6"/>
+                                    <Setter TargetName="TextLabel" Property="Opacity" Value="0.6"/>
+                                </Trigger>
+                            </ControlTemplate.Triggers>
+                        </ControlTemplate>
+                    </Setter.Value>
+                </Setter>
+            </Style>
+            <Style x:Key="TabItemStyle">
+                <Style.Triggers>
+                    <Trigger Property="TabItem.IsSelected" Value="True">
+                        <Setter Property="TabItem.Background" Value="#6C6C6C"/>
+                        <Setter Property="TabItem.Foreground" Value="Black"/>
+                    </Trigger>
+                    <Trigger Property="TabItem.IsSelected" Value="False">
+                        <Setter Property="TabItem.Background" Value="#6C6C6C"/>
+                        <Setter Property="TabItem.Foreground" Value="White"/>
+                    </Trigger>
+                    <Trigger Property="TabItem.IsMouseOver" Value="True">
+                        <Setter Property="TabItem.Background" Value="#6C6C6C"/>
+                        <Setter Property="TabItem.Foreground" Value="Black"/>
+                    </Trigger>
+                    <!--<Trigger Property="TabItem.IsMouseOver" Value="False">
+                        <Setter Property="TabItem.Background" Value="#6C6C6C"/>
+                        <Setter Property="TabItem.Foreground" Value="White"/>
+                    </Trigger>-->
+                    <!--<Trigger Property="TabItem.IsFocused" Value="True">
+                        <Setter Property="TabItem.Background" Value="#4D0000"/>
+                        <Setter Property="TabItem.Foreground" Value="#930000"/>
+                    </Trigger>-->
+                    <!--<Trigger Property="TabItem.IsFocused" Value="False">
+                        <Setter Property="TabItem.Background" Value="#6C6C6C"/>
+                        <Setter Property="TabItem.Foreground" Value="White"/>
+                    </Trigger>-->
+                </Style.Triggers>
+            </Style>
+            <Style x:Key="FocusVisual">
+                <Setter Property="Control.Template">
+                    <Setter.Value>
+                        <ControlTemplate>
+                            <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
+                        </ControlTemplate>
+                    </Setter.Value>
+                </Setter>
+            </Style>
+            <!--鎸夐挳闈欐�佹椂鑳屾櫙棰滆壊-->
+            <SolidColorBrush x:Key="Button.Static.Background" Color="#4F4F4F"/>
+            <!--鎸夐挳闈欐�佹椂杈规棰滆壊-->
+            <SolidColorBrush x:Key="Button.Static.Border" Color="#2F0000"/>
+            <!--鎸夐挳闈欐�佹椂鏂囧瓧棰滆壊-->
+            <SolidColorBrush x:Key="Button.Static.Foreground" Color="White"/>
+            <!--榧犳爣绉诲叆鏃惰儗鏅鑹�-->
+            <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#4D0000"/>
+            <!--榧犳爣绉诲叆鏃惰竟妗嗛鑹�-->
+            <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#2F0000"/>
+            <!--榧犳爣鎸変笅鏃惰儗鏅鑹�-->
+            <SolidColorBrush x:Key="Button.Pressed.Background" Color="#4D0000"/>
+            <!--榧犳爣鎸変笅鏃惰竟妗嗛鑹�-->
+            <SolidColorBrush x:Key="Button.Pressed.Border" Color="#2F0000"/>
+            <!--鎸夐挳涓嶄娇鐢ㄦ椂鑳屾櫙棰滆壊-->
+            <SolidColorBrush x:Key="Button.Disabled.Background" Color="Gray"/>
+            <!--鎸夐挳涓嶄娇鐢ㄦ椂杈规棰滆壊-->
+            <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
+            <!--鎸夐挳涓嶄娇鐢ㄦ椂鏂囧瓧棰滆壊-->
+            <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="White"/>
+            <Style x:Key="ButtonStyle" TargetType="{x:Type Button}">
+                <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
+                <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
+                <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
+                <Setter Property="Foreground" Value="White"/>
+                <Setter Property="BorderThickness" Value="1"/>
+                <!--杈规瀹藉害锛岃缃负0 鍗筹細鏃犺竟妗�-->
+                <Setter Property="HorizontalContentAlignment" Value="Center"/>
+                <Setter Property="VerticalContentAlignment" Value="Center"/>
+                <Setter Property="Padding" Value="1"/>
+                <Setter Property="Template">
+                    <Setter.Value>
+                        <ControlTemplate TargetType="{x:Type Button}">
+                            <Border x:Name="border" CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
+                                <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+                            </Border>
+                            <!--瑙﹀彂鍣細鏍规嵁渚濊禆灞炴�х殑鍊煎幓鎺у埗鎺т欢鐨勭姸鎬�-->
+                            <ControlTemplate.Triggers>
+                                <!--榛樿灞炴��-->
+                                <Trigger Property="IsDefaulted" Value="true">
+                                    <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
+                                </Trigger>
+                                <!--榧犳爣绉诲叆灞炴��-->
+                                <Trigger Property="IsMouseOver" Value="true">
+                                    <Setter Property="Background" TargetName="border" Value="{StaticResource Button.MouseOver.Background}"/>
+                                    <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
+                                </Trigger>
+                                <!--榧犳爣鎸変笅灞炴��-->
+                                <Trigger Property="IsPressed" Value="true">
+                                    <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
+                                    <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
+                                </Trigger>
+                                <!--鎸夐挳鍙敤鐘舵�佸睘鎬�-->
+                                <Trigger Property="IsEnabled" Value="false">
+                                    <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
+                                    <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
+                                    <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
+                                </Trigger>
+                            </ControlTemplate.Triggers>
+                        </ControlTemplate>
+                    </Setter.Value>
+                </Setter>
+            </Style>
+
+            <!--鏂囨湰妗嗘牱寮�-->
+            <SolidColorBrush x:Key="TextBox.Background" Color="#6C6C6C"/>
+            <SolidColorBrush x:Key="TextBox.BorderBrush" Color="#1F0000"/>
+            <SolidColorBrush x:Key="TextBox.Foreground" Color="White"/>
+            <Style x:Key="TextStyle" TargetType="{x:Type TextBox}">
+                <Setter Property="Background" Value="{StaticResource TextBox.Background}"/>
+                <Setter Property="BorderBrush" Value="{StaticResource TextBox.BorderBrush}"/>
+                <Setter Property="Foreground" Value="{StaticResource TextBox.Foreground}"/>
+                <Setter Property="VerticalContentAlignment" Value="Center"/>
+                <Setter Property="VerticalAlignment" Value="Center"/>
+                <Setter Property="BorderThickness" Value="1"/>
+                <Setter Property="HorizontalContentAlignment" Value="Right"/>
+            </Style>
+            <!-- 杩欎細褰卞搷鎵�鏈夊伐鍏锋爮鐨勬孩鍑鸿彍鍗� -->
+            <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type ToolBar}, ResourceId=ToolBarMenuBackground}" 
+                    Color="#3C3C3C"/>
+        </Grid.Resources>
+
+        <!--<Grid.ColumnDefinitions>
+            <ColumnDefinition Width="231*"/>
+            <ColumnDefinition Width="169*"/>
+        </Grid.ColumnDefinitions>-->
+        <Grid.RowDefinitions>
+            <RowDefinition Height="50"/>
+            <RowDefinition Height="15*"/>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0" Grid.ColumnSpan="2">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="160"/>
+                <ColumnDefinition Width="*"/>
+            </Grid.ColumnDefinitions>
+            <StackPanel  Grid.Column="0" Height="50" Width="150" Margin="5,0,5,0.4" Grid.RowSpan="2">
+                <Image Stretch="Fill" Source="/Image/Currency/logo_01.png"/>
+            </StackPanel>
+            <ToolBarTray Grid.Column="1" Orientation="Horizontal" Background="#3C3C3C" Margin="0,0,-0.4,0.4" Grid.RowSpan="2">
+                <ToolBar Grid.Column="1" Margin="0,0,-0.4,0.4" Grid.RowSpan="2" Background="#3C3C3C" Height="50">
+                    <Button x:Name="Refresh_Btn" Background="#7B7B7B" BorderThickness="0" ToolTip="鍒锋柊璁惧鍒楄〃骞惰繛鎺ヨ澶�" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="Refresh_Btn_Click" Margin="5,0,5,0">
+                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+                            <Image x:Name="Refresh_BtnImage" Stretch="Fill" RenderOptions.BitmapScalingMode="HighQuality" Source="\Image\ICON\link-m.png"/>
+                            <TextBlock Text="鍒锋柊杩炴帴" VerticalAlignment="Center" Foreground="white"/>
+                        </StackPanel>
+                    </Button>
+                    <!--<Button x:Name="IsConnect_Btn" Click="IsConnect_Btn_Click" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0">
+                    <Label Content="杩炴帴" Foreground="White" />
+                </Button>-->
+                    <Button x:Name="ProductMaanager_Btn" Click="ProductMaanager_Btn_Click" ToolTip="鎵撳紑璁惧绠$悊鍒楄〃" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0">
+                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+                            <Image x:Name="ProductMaanager_BtnImage" Source="\Image\ICON\camera-switch-fill.png" RenderOptions.BitmapScalingMode="HighQuality" Stretch="Fill"/>
+                            <TextBlock Text="璁惧绠$悊" VerticalAlignment="Center" Foreground="White" />
+                        </StackPanel>
+                    </Button>
+                    <!--<Button x:Name="Disconnect_Btn" Click="Disconnect_Btn_Click" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" IsEnabled="False" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0" Visibility="Collapsed">
+                    <Label Content="鏂紑杩炴帴" Foreground="White" />
+                </Button>-->
+                    <Button x:Name="ResultJudge_Btn" Click="ResultJudge_Btn_Click" ToolTip="鎵撳紑妫�娴嬫柟妗堥厤缃櫒" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0">
+                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+                            <Image x:Name="ResultJudge_BtnImage" Source="\Image\ICON\folder-2-fill.png" RenderOptions.BitmapScalingMode="HighQuality" Stretch="Fill"/>
+                            <TextBlock Text="妫�娴嬫柟妗�" VerticalAlignment="Center" Foreground="White" />
+                        </StackPanel>
+                    </Button>
+                    <Button x:Name="ImageSetup_Btn" Click="ImageSetup_Btn_Click" ToolTip="鎵撳紑鍥惧儚瀛樺偍璁剧疆" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0">
+                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+                            <Image x:Name="ImageSetup_BtnImage" Source="\Image\ICON\import-fill.png" RenderOptions.BitmapScalingMode="HighQuality" Stretch="Fill"/>
+                            <TextBlock Text="瀛樺浘璁剧疆" VerticalAlignment="Center" Foreground="White"/>
+                        </StackPanel>
+                    </Button>
+                    <CheckBox Name="OutputCheckBox" Content="鍗曠偣杈撳嚭" VerticalAlignment="Center" Foreground="White" HorizontalAlignment="Center" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=OutputCheckBoxEnable, Mode=TwoWay}"
+                              Checked="OutputCheckBox_Checked" Unchecked="OutputCheckBox_Unchecked" Style="{DynamicResource SimpleLabeledToggleSwitchStyle}"/>
+                    <!--<Button x:Name="Start_Detector_Btn" Visibility="Hidden" Click="Start_Detector_Btn_Click" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Margin="5,0,5,0">
+                        <Label Content="寮�濮嬫娴�" Foreground="White" />
+                    </Button>-->
+
+                    <Button x:Name="Write" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="Write_Click" Margin="5,0,5,0">
+                        <Label Content="閫氳娴嬭瘯" Foreground="White" />
+                    </Button>
+                    <Button x:Name="Read" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="Read_Click" Margin="5,0,5,0">
+                        <Label Content="鎵嬪姩閲囬泦" Foreground="White" />
+                    </Button>
+                    <Button x:Name="Reset" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="ReSet_Click" Margin="5,0,5,0">
+                        <Label Content="鐣岄潰閲嶇疆" Foreground="White" />
+                    </Button>
+                    <Button x:Name="btnViewReports" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="btnViewReports_Click" Margin="5,0,5,0">
+                        <Label Content="鏌ョ湅妫�娴嬫姤鍛�" Foreground="White" />
+                    </Button>
+                    <Button x:Name="btnViewLogs" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="btnViewLogs_Click" Margin="5,0,5,0">
+                        <Label Content="鏌ョ湅鏃ュ織" Foreground="White" />
+                    </Button>
+                    <Button x:Name="RestartButton"  Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="RestartButton_Click" Margin="5,0,5,0">
+                        <Label Content="涓�閿噸鍚�" Foreground="White" />
+                    </Button>
+                    <Button x:Name="VersionButton" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="VersionButton_Click" Margin="5,0,5,0">
+                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+                            <Label Content="鐗堟湰璇存槑" VerticalAlignment="Center" Foreground="White" Margin="5,0,0,0"/>
+                        </StackPanel>
+                    </Button>
+                    <!--<Button x:Name="LogTest" Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="AddTestLog_Click" Margin="5,0,5,0">
+                    <Label Content="鏃ュ織娴嬭瘯" Foreground="White" />
+                </Button>-->
+                </ToolBar>
+            </ToolBarTray>
+        </Grid>
+        <Grid Grid.Row="1">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="1*"></ColumnDefinition>
+                <ColumnDefinition Width="0.05*"></ColumnDefinition>
+                <ColumnDefinition Width="5*"></ColumnDefinition>
+                <ColumnDefinition Width="0.05*"></ColumnDefinition>
+                <ColumnDefinition Width="Auto"></ColumnDefinition>
+            </Grid.ColumnDefinitions>
+            <Grid Grid.Column="0">
+                <Grid.RowDefinitions>
+                    <RowDefinition Height="0.11*"/>
+                    <RowDefinition Height="1*"/>
+                    <RowDefinition Height="0.11*"/>
+                    <RowDefinition Height="1*"/>
+                </Grid.RowDefinitions>
+                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center">
+                    <!--<Button x:Name="IPSet" Content="IP璁剧疆" Foreground="White"  Background="#7B7B7B" BorderThickness="0" Height="30" Width="100" Style="{DynamicResource ButtonStyle}" Click="IPSet_Click"></Button>-->
+                    <Label  Content="璁惧鍒楄〃" HorizontalAlignment="Center"  FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                </StackPanel>
+                <Grid Grid.Row="1">
+                    <Border Grid.Row="0" BorderBrush="Black" BorderThickness="1" CornerRadius="5" Background="White">
+                        <ListBox x:Name="DeviceListBox" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontSize="20" FontFamily="Yu Gothic UI" SelectionChanged="DeviceListBox_SelectionChanged">
+                        </ListBox>
+                    </Border>
+                </Grid>
+                <StackPanel Grid.Row="2">
+                    <Label  Content="璁惧淇℃伅" HorizontalAlignment="Center" FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                </StackPanel>
+                <Border Grid.Row="3" BorderBrush="Black" BorderThickness="1" CornerRadius="5"  Background="White">
+                    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
+                        <Grid x:Name="ProductInformation">
+                            <Grid.RowDefinitions>
+                                <RowDefinition Height="*"/>
+                                <RowDefinition Height="*"/>
+                                <RowDefinition Height="*"/>
+                                <RowDefinition Height="*"/>
+                                <RowDefinition Height="*"/>
+                                <RowDefinition Height="*"/>
+                            </Grid.RowDefinitions>
+                            <StackPanel Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Center">
+                                <TextBlock Text="IP鍦板潃:" Foreground="Black" FontSize="14"/>
+                                <TextBlock Name="CameraIP" Text="" Margin="5,0,0,0" Foreground="Black" FontSize="14"/>
+                            </StackPanel>
+                            <StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" >
+                                <TextBlock Text="瀛愮綉:"  Foreground="Black" FontSize="14"/>
+                                <TextBlock Name="CameraNetMask" Text="" Margin="5,0,0,0" Foreground="Black" FontSize="14"/>
+                            </StackPanel>
+                            <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center">
+                                <TextBlock Text="缃戝叧:" Foreground="Black"  FontSize="14"/>
+                                <TextBlock Name="CameraGateWay" Text="" Margin="5,0,0,0" Foreground="Black"  FontSize="14"/>
+                            </StackPanel>
+                            <StackPanel Grid.Row="3" Orientation="Horizontal" VerticalAlignment="Center">
+                                <TextBlock Text="鍥轰欢鐗堟湰:" Foreground="Black"  FontSize="14"/>
+                                <TextBlock Name="CameraFirmwareVersion" Text="" Margin="5,0,0,0" Foreground="Black" FontSize="14"/>
+                            </StackPanel>
+                            <StackPanel Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Center">
+                                <TextBlock Text="璁惧鍨嬪彿:" Foreground="Black"  FontSize="14"/>
+                                <TextBlock Name="CameraModel" Text="" Margin="5,0,0,0" Foreground="Black"  FontSize="14"/>
+                            </StackPanel>
+                            <StackPanel Grid.Row="5" Orientation="Horizontal" VerticalAlignment="Center">
+                                <TextBlock Text="璁惧鍚�:" Foreground="Black"  FontSize="14"/>
+                                <TextBlock Name="CameraAlias" Text="" Margin="5,0,0,0" Foreground="Black"  FontSize="14"/>
+                            </StackPanel>
+                        </Grid>
+                    </ScrollViewer>
+                </Border>
+            </Grid>
+            <Grid Grid.Column="2">
+                <!--缁撴灉鏄剧ず-->
+                <Grid.RowDefinitions>
+                    <RowDefinition Height="auto"/>
+                    <RowDefinition Height="11.5*"/>
+                    <RowDefinition Height="3.5*"/>
+                </Grid.RowDefinitions>
+                <DockPanel Grid.Row="0" VerticalAlignment="Center">
+                    <Grid>
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition Width="*"/>
+                            <ColumnDefinition Width="*"/>
+                        </Grid.ColumnDefinitions>
+                        <Grid.RowDefinitions>
+                            <RowDefinition Height="*"/>
+                            <RowDefinition Height="*"/>
+                        </Grid.RowDefinitions>
+                    <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" DockPanel.Dock="Left">
+                        <TextBlock Text="妫�娴嬬姸鎬侊細" Foreground="White" FontSize="23"/>
+                        <TextBlock x:Name="DetectState" Text="鏈湪妫�娴�" FontSize="23" Foreground="red"/>
+                    </StackPanel>
+
+                        <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" >
+                        <TextBlock Text="閫氳鐘舵�侊細" Foreground="White" FontSize="23"/>
+                        <TextBlock x:Name="LinkState" Text="鏈繛鎺�" FontSize="23" Foreground="red"/>
+                    </StackPanel>
+                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
+                            <TextBlock Text="妫�娴嬫柟妗堬細" Foreground="White" FontSize="23"/>
+                            <TextBlock x:Name="ProjectState" Text="鏈姞杞�" FontSize="23" Foreground="red"/>
+                        </StackPanel>
+                        <StackPanel Grid.Row="1" Grid.Column="2" Orientation="Horizontal">
+                            <TextBlock Text="妫�娴嬫ā鍨嬶細" Foreground="White" FontSize="23"/>
+                            <TextBlock x:Name="ModelState" Text="鏈姞杞�" FontSize="23" Foreground="red"/>
+                        </StackPanel>
+                    </Grid>
+                </DockPanel>
+                <Grid Grid.Row="1">
+                    <Grid.RowDefinitions>
+                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*"/>
+                    </Grid.RowDefinitions>
+                    <Grid.ColumnDefinitions>
+                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*"/>
+                    </Grid.ColumnDefinitions>
+                    <Border x:Name="finall_result0" MouseLeftButtonDown="finall_result0_MouseLeftButtonDown"  Grid.Row="0" Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <StackPanel Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias0" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName0" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                                <!--<Button x:Name="finall_result0_Btn" Click="finall_result0_Btn_Click" Background="#7B7B7B"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result0" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                        <!--缁撴灉鏄剧ず1-->
+                    </Border>
+                    <Border x:Name="finall_result1" MouseLeftButtonDown="finall_result1_MouseLeftButtonDown"  Grid.Row="0" Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず2-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias1" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName1" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result1" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result2" MouseLeftButtonDown="finall_result2_MouseLeftButtonDown"  Grid.Row="0" Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず3-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias2" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName2" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result2" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result3" MouseLeftButtonDown="finall_result3_MouseLeftButtonDown"  Grid.Row="0" Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず4-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias3" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName3" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result3" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result4" MouseLeftButtonDown="finall_result4_MouseLeftButtonDown"  Grid.Row="1"  Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず5-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias4" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName4" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result4" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result5" Grid.Row="1" MouseLeftButtonDown="finall_result5_MouseLeftButtonDown"  Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず6-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias5" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName5" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result5" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result6" Grid.Row="1" MouseLeftButtonDown="finall_result6_MouseLeftButtonDown"  Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず7-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias6" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName6" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result6" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result7" Grid.Row="1" MouseLeftButtonDown="finall_result7_MouseLeftButtonDown"  Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず8-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias7" Text="" Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName7" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result7" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result8" MouseLeftButtonDown="finall_result8_MouseLeftButtonDown"  Grid.Row="2" Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず9-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias8" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName8" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result8" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result9" MouseLeftButtonDown="finall_result9_MouseLeftButtonDown"  Grid.Row="2" Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず10-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias9" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName9" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result9" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result10" MouseLeftButtonDown="finall_result10_MouseLeftButtonDown"  Grid.Row="2" Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず11-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias10" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName10" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result10" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result11" MouseLeftButtonDown="finall_result11_MouseLeftButtonDown"  Grid.Row="2" Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず12-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias11" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName11" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result11" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result12" MouseLeftButtonDown="finall_result12_MouseLeftButtonDown"  Grid.Row="3" Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず13-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias12" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName12" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result12" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result13" MouseLeftButtonDown="finall_result13_MouseLeftButtonDown"  Grid.Row="3" Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず14-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias13" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName13" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result13" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result14" MouseLeftButtonDown="finall_result14_MouseLeftButtonDown"  Grid.Row="3" Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず15-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias14" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName14" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result14" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result15" MouseLeftButtonDown="finall_result15_MouseLeftButtonDown"  Grid.Row="3" Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず16-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias15" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName15" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result15" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result16" MouseLeftButtonDown="finall_result16_MouseLeftButtonDown"  Grid.Row="4" Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず17-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias16" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName16" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result16" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result17" MouseLeftButtonDown="finall_result17_MouseLeftButtonDown"  Grid.Row="4" Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず18-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias17" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName17" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result17" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result18" MouseLeftButtonDown="finall_result18_MouseLeftButtonDown"  Grid.Row="4" Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず19-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias18" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName18" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result18" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result19" MouseLeftButtonDown="finall_result19_MouseLeftButtonDown"  Grid.Row="4" Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず20-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias19" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName19" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result19" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result20" MouseLeftButtonDown="finall_result20_MouseLeftButtonDown"  Grid.Row="5" Grid.Column="0" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず21-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias20" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName20" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result20" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result21" MouseLeftButtonDown="finall_result21_MouseLeftButtonDown"  Grid.Row="5" Grid.Column="1" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず22-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias21" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName21" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result21" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result22" MouseLeftButtonDown="finall_result22_MouseLeftButtonDown"  Grid.Row="5" Grid.Column="2" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず23-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias22" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName22" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result22" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                    <Border x:Name="finall_result23" MouseLeftButtonDown="finall_result23_MouseLeftButtonDown"  Grid.Row="5" Grid.Column="3" Background="#7B7B7B" BorderBrush="Black" BorderThickness="1" CornerRadius="5">
+                        <!--缁撴灉鏄剧ず24-->
+                        <StackPanel  Orientation="Vertical">
+                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                <TextBlock x:Name="cameraAlias23" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></TextBlock>
+                                <!--<TextBlock x:Name="deviceName23" Text=" " Height="30" Foreground="White" FontSize="15" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"/>-->
+                            </StackPanel>
+                            <Label x:Name="Finall_result23" Content="" Foreground="White" FontSize="30" FontFamily="Microsoft YaHei UI" FontWeight="Bold" HorizontalAlignment="Center"></Label>
+                        </StackPanel>
+                    </Border>
+                </Grid>
+                <Grid Grid.Row="2">
+                    <Grid.RowDefinitions>
+                        <RowDefinition Height="1*"/>
+                        <RowDefinition Height="3*"/>
+                    </Grid.RowDefinitions>
+                    <StackPanel Grid.Row="0" >
+                        <Label Content="妫�娴嬫棩蹇�" HorizontalAlignment="Center" FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                    </StackPanel >
+                    <Border Grid.Row="1" BorderBrush="White" BorderThickness="2" CornerRadius="5">
+                        <ListView x:Name="LogListView" ItemsSource="{Binding LogEntries}"  VirtualizingStackPanel.IsVirtualizing="True" BorderThickness="0" >
+                            <!--<ListView.Template>
+                                <ControlTemplate TargetType="ListView">
+                                    <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto">
+                                        <ItemsPresenter/>
+                                    </ScrollViewer>
+                                </ControlTemplate>
+                            </ListView.Template>-->
+                            <ListView.View>
+                                <GridView>
+                                    <GridViewColumn Header="鏃堕棿" Width="80">
+                                        <GridViewColumn.CellTemplate>
+                                            <DataTemplate>
+                                                <TextBlock Text="{Binding Timestamp, StringFormat='HH:mm:ss'}" 
+                                   Foreground="{Binding Foreground}"/>
+                                            </DataTemplate>
+                                        </GridViewColumn.CellTemplate>
+                                    </GridViewColumn>
+                                    <GridViewColumn Header="绾у埆" Width="80">
+                                        <GridViewColumn.CellTemplate>
+                                            <DataTemplate>
+                                                <TextBlock Text="{Binding Level}" Foreground="{Binding Foreground}"/>
+                                            </DataTemplate>
+                                        </GridViewColumn.CellTemplate>
+                                    </GridViewColumn>
+                                    <GridViewColumn Header="娑堟伅" Width="600">
+                                        <GridViewColumn.CellTemplate>
+                                            <DataTemplate>
+                                                <TextBlock Text="{Binding Message}" 
+                                   TextWrapping="Wrap" 
+                                   Foreground="{Binding Foreground}"/>
+                                            </DataTemplate>
+                                        </GridViewColumn.CellTemplate>
+                                    </GridViewColumn>
+                                </GridView>
+                            </ListView.View>
+                        </ListView>
+                    </Border>
+                    <!--<Border Grid.Row="1" BorderBrush="White" BorderThickness="2" CornerRadius="5"  Background="#3C3C3C">
+                        <TextBox Name="Log1" VerticalScrollBarVisibility="Hidden" Foreground="Black" BorderThickness="0"/>
+                    </Border>-->
+                </Grid>
+            </Grid>
+
+            <Grid Grid.Column="4">
+                <!--鍙傛暟璁剧疆-->
+                <Grid.RowDefinitions>
+                    <RowDefinition Height="1.5*"/>
+                    <RowDefinition Height="Auto"/>
+                    <RowDefinition Height="1.5*"/>
+                    <RowDefinition Height="Auto"/>
+                    <RowDefinition Height="1.5*"/>
+                    <RowDefinition Height="5*"/>
+                </Grid.RowDefinitions>
+
+                <StackPanel Grid.Row="0">
+                    <Label  Content="宸ョ▼璁剧疆" HorizontalAlignment="Center" FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                </StackPanel>
+                <Grid Grid.Row="1">
+                    <Border Grid.Row="0" BorderBrush="White" BorderThickness="2" CornerRadius="5"  Background="#3C3C3C">
+                        <ScrollViewer VerticalScrollBarVisibility="Hidden"  HorizontalScrollBarVisibility="Hidden">
+                            <StackPanel>
+                                <!-- 杈撳嚭璁剧疆 -->
+                                <GroupBox Header="绗憼姝ワ細妫�娴嬫柟妗堥�夋嫨" Foreground="White"  Margin="0,0,0,10" FontSize="14">
+                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                        <ComboBox Name="cmbDetectionPlans" DisplayMemberPath="FileName" SelectedValuePath="FullPath" Height="20" Width="100" HorizontalContentAlignment="Left" FontSize="12"/>
+                                        <Button Name="ResultJudge_Path" Content="閫夋嫨" Click="BtnSelectParam_Click" Width="50" Height="30" Margin="5,0,0,0" Style="{DynamicResource ButtonStyle}"/>
+                                    </StackPanel>
+                                </GroupBox>
+
+                                <!-- 鎺ㄧ悊寮曟搸閫夋嫨 -->
+                                <GroupBox Header="绗憽姝ワ細妯″瀷閫夋嫨" Margin="0,0,0,10" Foreground="White" FontSize="14">
+                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                        <ComboBox Name="cmbModels" DisplayMemberPath="FileName" SelectedValuePath="FullPath" Height="20" Width="100" HorizontalContentAlignment="Left" FontSize="12"/>
+                                        <Button Name="Model_Path" Click="BtnConfirmModel_Click" Content="纭畾" Width="50" Height="30" Margin="5,0,0,0" Style="{DynamicResource ButtonStyle}"/>
+                                    </StackPanel>
+                                </GroupBox>
+
+                                <!-- 宸ョ▼鏂囦欢瀵煎嚭 -->
+                                <GroupBox Header="绗憿姝ワ細宸ョ▼鏂囦欢瀵煎嚭" Foreground="White" FontSize="14">
+                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                        <Button Name="Proj" Content="瀵煎嚭" Click="BtnExport_Click" Width="60" Height="30" Style="{DynamicResource ButtonStyle}"/>
+                                    </StackPanel>
+                                </GroupBox>
+
+                                <!-- 宸ョ▼鏂囦欢鍔犺浇 -->
+                                <GroupBox Header="绗懀姝ワ細宸ョ▼鏂囦欢鍔犺浇" Foreground="White" FontSize="14">
+                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                        <ComboBox Name="cmbProjects" DisplayMemberPath="FileName" SelectedValuePath="FullPath" Height="20" Width="100" HorizontalContentAlignment="Left" FontSize="12" Margin="0,0,5,0"/>
+                                        <Button Content="鍔犺浇" Click="BtnLoad_Click" Width="60" Height="30" Style="{DynamicResource ButtonStyle}"/>
+                                    </StackPanel>
+                                </GroupBox>
+
+                                <!-- 鍒锋柊鎸夐挳 -->
+                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10,0,0">
+                                    <Button Content="鍒锋柊" Click="BtnRefreshModels_Click" Width="60" Height="30" Style="{DynamicResource ButtonStyle}"/>
+                                </StackPanel>
+                            </StackPanel>
+                        </ScrollViewer>
+                    </Border>
+                </Grid>
+
+                <StackPanel Grid.Row="2">
+                    <Label  Content="閫氳璁剧疆" HorizontalAlignment="Center" FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                </StackPanel>
+                <Border Grid.Row="3" BorderBrush="White" BorderThickness="2" CornerRadius="5"  Background="#3C3C3C">
+                    <Grid>
+                        <Grid.RowDefinitions>
+                            <!--<RowDefinition Height="*"/>
+                            <RowDefinition Height="*"/>
+                            <RowDefinition Height="*"/>
+                            <RowDefinition Height="*"/>-->
+                        </Grid.RowDefinitions>
+                        <TabControl HorizontalAlignment="Center" Background="#3C3C3C" BorderThickness="0">
+                            <TabItem Header="ModBus" IsSelected="True" Width="80" Background="#7B7B7B" Style="{StaticResource  TabItemStyle}">
+                                <StackPanel Margin="10">
+                                    <TextBlock Text="鏈嶅姟鍣↖P:" HorizontalAlignment="Center" Foreground="White"/>
+                                    <ComboBox x:Name="Client_ServerIpComboBox" Width="140" IsEditable="True" SelectedIndex="0">
+                                        <ComboBoxItem Content="192.168.0.20" Width="120"/>
+                                    </ComboBox>
+                                    <TextBlock Text="绔彛鍙�:" HorizontalAlignment="Center" Foreground="White"/>
+                                    <ComboBox x:Name="Client_PortComboBox" Width="140" SelectedIndex="0">
+                                        <ComboBoxItem Content="502" Width="120" />
+                                    </ComboBox>
+                                    <TextBlock Background="#3C3C3C" Height="10"></TextBlock>
+                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                        <Button x:Name="Client_connect" Content="杩炴帴" Click="Client_Connect_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B"/>
+                                        <!--<Button x:Name="Client_disconnect"  Content="鏂紑" Click="Client_Disconnect_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B"/>-->
+                                        <Button Content="娓呯┖" Click="Client_ClearClientLogs_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B"/>
+                                    </StackPanel>
+                                    <!--<TextBlock Text="鏁版嵁鍙戦��:" HorizontalAlignment="Center" />
+                                    <TextBox x:Name="Client_DataToSendTextBox" Width="200"/>
+                                    <Button Content="鍙戦��" Click="Client_SendData_Click" />-->
+
+                                    <!--<TextBlock Text="娑堟伅:" HorizontalAlignment="Center" Foreground="White"/>-->
+                                    <ScrollViewer VerticalScrollBarVisibility="Hidden">
+                                        <TextBox x:Name="Client_LogsTextBox" Height="80" IsReadOnly="True" TextWrapping="Wrap" FontSize="11"/>
+                                    </ScrollViewer>
+                                </StackPanel>
+                            </TabItem>
+
+                            <TabItem Header="TCP/IP" Width="80" Background="#7B7B7B" Style="{StaticResource TabItemStyle}" >
+                                <ScrollViewer VerticalScrollBarVisibility="Hidden"  HorizontalScrollBarVisibility="Hidden">
+                                    <StackPanel Margin="10">
+                                        <TextBlock Text="鏈嶅姟鍣↖P:" HorizontalAlignment="Center" Foreground="White"/>
+                                        <ComboBox x:Name="TCPServer_IpComboBox" SelectedIndex="0">
+                                            <ComboBoxItem Content="127.0.0.1" />
+                                            <ComboBoxItem Content="0.0.0.0" />
+                                        </ComboBox>
+
+                                        <TextBlock Text="绔彛鍙�:" HorizontalAlignment="Center" Foreground="White"/>
+                                        <ComboBox x:Name="TCPServer_PortComboBox" SelectedIndex="0" IsEditable="True"
+                                                  Text="{Binding Source={x:Static Properties:Settings.Default}, Path=DefaultPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
+                                                  SelectedValue="{Binding Source={x:Static Properties:Settings.Default}, Path=SelectedPort, Mode=TwoWay}">
+                                            <ComboBoxItem Content="5011" Width="120"/>
+                                            <ComboBoxItem Content="8080" Width="120"/>
+                                        </ComboBox>
+
+                                        <CheckBox x:Name="TCPServer_EnableHeartbeat" Content="寮�鍚績璺虫娴�" Checked="TCPServer_EnableHeartbeat_Checked" Unchecked="TCPServer_EnableHeartbeat_Unchecked" Foreground="White" Margin="0,10,0,0"/>
+
+                                        <StackPanel x:Name="TCPServer_HeartbeatPanel" Margin="0,5,0,0" Visibility="Collapsed">
+                                            <TextBlock Text="蹇冭烦鎸囦护:" HorizontalAlignment="Center" Foreground="White"/>
+                                            <TextBox x:Name="TCPServer_HeartbeatCommand" Text="heartBeat" HorizontalAlignment="Center"/>
+
+                                            <TextBlock Text="蹇冭烦鍛ㄦ湡(ms):" HorizontalAlignment="Center" Foreground="White" Margin="0,5,0,0"/>
+                                            <TextBox x:Name="TCPServer_HeartbeatInterval" Text="1000" HorizontalAlignment="Center"/>
+                                        </StackPanel>
+
+                                        <TextBlock Background="#3C3C3C" Height="10"></TextBlock>
+
+                                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                            <Button x:Name="TCPServer_Start" Content="寮�鍚�" ToolTip="鏈嶅姟鍣ㄥ紑鍚睛鍚�" Click="TCPServer_Start_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B"/>
+                                            <Button x:Name="TCPServer_Stop" Content="鍋滄" ToolTip="鏈嶅姟鍣ㄥ仠姝睛鍚�" Click="TCPServer_Stop_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B" Margin="5,0,0,0"/>
+                                        </StackPanel>
+                                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                                            <Button x:Name="RefreshIpButton" Content="鍒锋柊" ToolTip="鍒锋柊鍙敤IP鍒楄〃" Click="RefreshIpButton_Click" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B"/>
+                                            <Button Content="娓呯┖" Click="TCPServer_ClearLogs_Click" ToolTip="娓呯┖鏃ュ織鏍�" Style="{DynamicResource ButtonStyle}" Width="50" Height="25" Background="#7B7B7B" Margin="5,0,0,0"/>
+                                        </StackPanel>
+
+                                        <ScrollViewer VerticalScrollBarVisibility="Disabled"  Height="80" Margin="0,5,0,0">
+                                            <TextBox x:Name="TCPServer_LogsTextBox" IsReadOnly="True" TextWrapping="Wrap" FontSize="11" MaxWidth="150"/>
+                                        </ScrollViewer>
+                                    </StackPanel>
+                                </ScrollViewer>
+                            </TabItem>
+                        </TabControl>
+
+                    </Grid>
+                </Border>
+
+                <StackPanel Grid.Row="4">
+                    <Label  Content="鏃ュ織" HorizontalAlignment="Center" FontSize="20"  FontFamily="Yu Gothic UI" Foreground="White"/>
+                </StackPanel>
+
+                <Border Grid.Row="5" BorderBrush="White" BorderThickness="2" CornerRadius="5"  Background="#3C3C3C">
+                    <TextBox  Name="Log" VerticalScrollBarVisibility="Hidden" Foreground="Black" BorderThickness="0"/>
+                </Border>
+            </Grid>
+        </Grid>
+    </Grid>
+</Window>

--
Gitblit v1.9.3