20240301_JSEQ_upperpc/JiangsuEarthquake_test/JiangsuEarthquake/Views/SystemControlView.xaml
XuMin 748090f317 修改部分:
1 地震仪告警记录中故障次数隐藏;电力载波机和光电交换机的供电状态隐藏;
2 除漏水和保护板事件的数据按照浮点数解析,别的按照整数解析;
3 解决TCP Server和Client存在的问题,包括无法监测到客户端连接,无法监测到服务端断开等问题;
2024-08-13 14:35:33 +08:00

2167 lines
147 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<UserControl x:Class="JiangsuEarthquake.Views.SystemControlView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:JiangsuEarthquake.Views"
xmlns:converters="clr-namespace:JiangsuEarthquake.Common"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
xmlns:hc="https://handyorg.github.io/handycontrol"
FontFamily="{StaticResource DigitalDisplay}"
Name="SystemControlPage"
d:DesignHeight="850" d:DesignWidth="1550">
<UserControl.Resources>
<converters:NegateConverter x:Key="NegateConverter"/>
<converters:BtnConvert x:Key="BtnConvert" />
<converters:ConnectConvert2 x:Key="ConnectConvert2" />
<converters:ConnectConvert3 x:Key="ConnectConvert3" />
<Style TargetType="GroupBox">
<Setter Property="Margin" Value="10,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GroupBox">
<Grid>
<!--左上角-->
<Polyline HorizontalAlignment="Left" VerticalAlignment="Top"
Points="0 30,0 10,10 0,30 0" Stroke="#9918AABD" StrokeThickness="1"/>
<!--左上角点-->
<Ellipse Width="4" Height="4" VerticalAlignment="Top" HorizontalAlignment="Left"
Fill="#9918AABD" Margin="24,-2,0,0"/>
<Ellipse Width="4" Height="4" VerticalAlignment="Top" HorizontalAlignment="Left"
Fill="#9918AABD" Margin="-2,24,0,0"/>
<!--右上角-->
<Path Data="M0 0, 3 3, 30 3, 33 0, 68 0, 73 7,78 7, 78 10M8 0, 25 0"
Stroke="#5518AABD" VerticalAlignment="Top" HorizontalAlignment="Right"/>
<!--左下角-->
<Polyline Points="0,0 0,15 10,15" Stroke="#5518AABD" VerticalAlignment="Bottom"
HorizontalAlignment="Left"/>
<!--右下角-->
<Polyline Points="10,0 0,10" Stroke="#5518AABD" VerticalAlignment="Bottom"
HorizontalAlignment="Right"/>
<!--右下角图表-->
<Polyline Points="0,7 7 7 7 0" Fill="#9918AABD" VerticalAlignment="Bottom"
HorizontalAlignment="Right"/>
<Border BorderBrush="#5518AABD" BorderThickness="0,1,0,0" VerticalAlignment="Top"
Margin="30,-0.5,78,0"/>
<Border BorderBrush="#5518AABD" BorderThickness="0,0,1,0" HorizontalAlignment="Right"
Margin="0,10"/>
<Border BorderBrush="#5518AABD" BorderThickness="0,1,0,0" VerticalAlignment="Bottom"
Margin="10,0"/>
<Border BorderBrush="#5518AABD" BorderThickness="0,0,1,0" HorizontalAlignment="Left"
Margin="-0.5,15"/>
<!--箭头-->
<Path Data="M0 0,3 0,5 4,3 8,0 8,3 4" Fill="#9918AABD" VerticalAlignment="Top"
HorizontalAlignment="Left" Margin="10,13"/>
<Path Data="M0 0,3 0,5 4,3 8,0 8,3 4" Fill="#5518AABD" VerticalAlignment="Top"
HorizontalAlignment="Left" Margin="16,13"/>
<!--字体-->
<TextBlock Text="{TemplateBinding Header}" Foreground="#18AABD"
VerticalAlignment="Top" HorizontalAlignment="Left" Margin="25,12"/>
<!-- 占位对象 -->
<ContentPresenter />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TextBlockStyle" TargetType="TextBlock">
<Style.Setters>
<Setter Property="Width" Value="30"/>
<Setter Property="Height" Value="auto"/>
<Setter Property="Margin" Value="0,0,5,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="Red"/>
</Style.Setters>
</Style>
<Style x:Key="StationChangeStyle" TargetType="RadioButton">
<Setter Property="Width" Value="60"/>
<Setter Property="Height" Value="24"/>
<Setter Property="Foreground" Value="#888"/>
<Setter Property="Background" Value="#DDD"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="TextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox" >
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}" CornerRadius="0" SnapsToDevicePixels="True">
<ScrollViewer x:Name="PART_ContentHost" Focusable="False"
HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<sys:Boolean x:Key="BoolTrue">True</sys:Boolean>
<sys:Boolean x:Key="BoolFalse">False</sys:Boolean>
</UserControl.Resources>
<ScrollViewer VerticalScrollBarVisibility="Hidden">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1.1*"/>
<RowDefinition Height="1.1*"/>
<RowDefinition Height="1.5*"/>
<!--<RowDefinition Height="0.6*"/>-->
</Grid.RowDefinitions>
<!--系统连接状态-->
<Grid Grid.Row="0">
<GroupBox Header="海底基站连接状态">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!--Socket通信①-->
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="基站通信 ①"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="MUIP1" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel1.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="Port1" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel1.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket1DoOpenCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding serverModel1.IsOpened, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--Socket通信②-->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="基站通信 ②"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="MUIP2" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel2.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo2.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="Port2" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel2.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo2.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket2DoOpenCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding serverModel2.IsOpened, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--升压站通信-->
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="升压站通信 ①"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<!--<TextBlock Margin="0,0,0,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="SerialPort"/>
<TextBlock Width="16"/>
<ComboBox Name="SYZCHK1" Width="120" VerticalAlignment="Center"
Background="Transparent" BorderThickness="0,0,0,1"
HorizontalAlignment="Center" FontSize="16" Foreground="White"
IsEnabled="{Binding comModel1.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo1.PortName}"
HorizontalContentAlignment="Center" >
</ComboBox>-->
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="SYZIP1" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<!--<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="BaudRate"/>
<ComboBox Name="SYZBTL1" Width="120" FontSize="16" VerticalAlignment="Center"
HorizontalAlignment="Center" Foreground="White"
Background="Transparent" BorderThickness="0,0,0,1"
IsEnabled="{Binding comModel1.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo1.BaudRate}"
HorizontalContentAlignment="Center"/>-->
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="SYZPort1" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket1DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModel1.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--升压站通信-->
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="升压站通信 ②"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<!--<TextBlock Margin="0,0,0,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="SerialPort"/>
<TextBlock Width="16"/>
<ComboBox Name="SYZCHK2" Width="120" VerticalAlignment="Center"
Background="Transparent" BorderThickness="0,0,0,1"
HorizontalAlignment="Center" FontSize="16" Foreground="White"
IsEnabled="{Binding comModel2.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo2.PortName}"
HorizontalContentAlignment="Center"/>-->
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="SYZIP2" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo2.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<!--<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="BaudRate"/>
<ComboBox Name="SYZBTL2" Width="120" FontSize="16" VerticalAlignment="Center"
HorizontalAlignment="Center" Foreground="White"
Background="Transparent" BorderThickness="0,0,0,1"
IsEnabled="{Binding comModel2.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo2.BaudRate}"
HorizontalContentAlignment="Center"/>-->
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="SYZPort2" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo2.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket2DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModel2.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</Grid>
<!--地震仪通信设置-->
<Grid Grid.Row="1">
<GroupBox Header="地震仪连接状态">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!--地震仪通信-->
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="主地震仪通信 ①"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="MainSeisIP1" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelMainSeis1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoMainSeis1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="MainSeisPort1" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelMainSeis1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoMainSeis1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<TextBlock Grid.Row="4" Name="MainSeis1ConnectMsg" Text="{Binding MainSeis1ConnectMsg}"
Foreground="{Binding MainSeis1ConnectMsgForeground}" Margin="255,0,0,8"
VerticalAlignment="Bottom" FontSize="12"
Visibility="{Binding MainSeis1ConnectMsgVisibility}"/>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding SocketMainSeis1DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModelMainSeis1.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--地震仪通信-->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="备地震仪通信 ①"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="BackupSeisIP1" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelBackupSeis1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoBackupSeis1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="BackupSeisPort1" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelBackupSeis1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoBackupSeis1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<TextBlock Grid.Row="4" Name="BackupSeis1ConnectMsg" Text="{Binding BackupSeis1ConnectMsg}"
Foreground="{Binding BackupSeis1ConnectMsgForeground}" Margin="255,0,0,8"
VerticalAlignment="Bottom" FontSize="12"
Visibility="{Binding BackupSeis1ConnectMsgVisibility}"/>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding SocketBackupSeis1DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModelBackupSeis1.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--地震仪通信-->
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="主地震仪通信 ②"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="MainSeisIP2" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelMainSeis2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoMainSeis2.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="MainSeisPort2" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelMainSeis2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoMainSeis2.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<TextBlock Grid.Row="4" Name="MainSeis2ConnectMsg" Text="{Binding MainSeis2ConnectMsg}"
Foreground="{Binding MainSeis2ConnectMsgForeground}" Margin="255,0,0,8"
VerticalAlignment="Bottom" FontSize="12"
Visibility="{Binding MainSeis2ConnectMsgVisibility}"/>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding SocketMainSeis2DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModelMainSeis2.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--地震仪通信-->
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,0,0" VerticalAlignment="Top" FontSize="18"
Foreground="White" Text="备地震仪通信 ②"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,6,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="IP"/>
<TextBlock Width="16"/>
<TextBox Name="BackupSeisIP2" Width="120" VerticalAlignment="Center" Background="Transparent"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelBackupSeis2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoBackupSeis2.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="16"
Foreground="White" Text="Port"/>
<TextBox Name="BackupSeisPort2" Width="120" VerticalAlignment="Center" FontSize="16"
Foreground="White" Background="Transparent" CaretBrush="White"
BorderThickness="0,0,0,1.2" BorderBrush="#FF424242" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModelBackupSeis2.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfoBackupSeis2.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<TextBlock Grid.Row="4" Name="BackupSeis2ConnectMsg" Text="{Binding BackupSeis2ConnectMsg}"
Foreground="{Binding BackupSeis2ConnectMsgForeground}" Margin="255,0,0,8"
VerticalAlignment="Bottom" FontSize="12"
Visibility="{Binding BackupSeis2ConnectMsgVisibility}"/>
<StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="100" Height="30" Margin="10,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding SocketBackupSeis2DoConnectCommand}" BorderBrush="White"
Background="Transparent" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModelBackupSeis2.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="16" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</Grid>
<!--远程控制-->
<Grid Grid.Row="2">
<GroupBox Header="远程控制">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="0.7*"/>
<ColumnDefinition Width="0.7*"/>
<!--<ColumnDefinition Width="0.7*"/>-->
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Margin="10,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="海底基站电源:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding BaseStationPowerBackground}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_Power}" Height="40" Width="40"
Stretch="Fill"/>
<Button Grid.Column="2" Name="BaseStationPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding BaseStationPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="打开" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="BaseStationPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding BaseStationPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="关闭" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="BaseStationPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="主地震仪电源:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding MainSeisPowerBackground}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_Seis1}" Height="40" Width="40"
Stretch="Fill"/>
<Button Grid.Column="2" Name="MainSeisPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding MainSeisPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="打开" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="MainSeisPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding MainSeisPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="关闭" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="MainSeisPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="备地震仪电源:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding BackupSeisPowerBackground}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_Seis2}" Height="40" Width="40"
Stretch="Fill"/>
<Button Grid.Column="2" Name="BackupSeisPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding BackupSeisPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="打开" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="BackupSeisPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding BackupSeisPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="关闭" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="BackupSeisPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.8*"/>
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="电磁电源:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding ElectPowerBackground}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_Elect}" Height="40" Width="40"
Stretch="Fill"/>
<Button Grid.Column="2" Name="ElectPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding ElectPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="打开" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="ElectPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding ElectPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="关闭" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="ElectPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition Height="0.6*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="1" Name="BaseStationMsg" Text="{Binding BaseStationMsg}"
FontSize="14" Foreground="{Binding BaseStationMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BaseStationMsgVisibility}"
VerticalAlignment="Center" Margin="0,0,0,55"/>
<TextBlock Grid.Row="2" Name="MainSeisMsg" Text="{Binding MainSeisMsg}"
FontSize="14" Foreground="{Binding MainSeisMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding MainSeisMsgVisibility}"
VerticalAlignment="Top" Margin="0,3,0,0"/>
<TextBlock Grid.Row="2" Name="BackupSeisMsg" Text="{Binding BackupSeisMsg}"
FontSize="14" Foreground="{Binding BackupSeisMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BackupSeisMsgVisibility}"
VerticalAlignment="Bottom" Margin="0,30,0,-10"/>
<TextBlock Grid.Row="3" Name="ElectMsg" Text="{Binding ElectMsg}"
FontSize="14" Foreground="{Binding ElectMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding ElectMsgVisibility}"
VerticalAlignment="Bottom" Margin="0,0,0,10"/>
<hc:ButtonGroup Grid.Row="2" Style="{StaticResource ButtonGroupSolid}"
Margin="170,0,0,0" Width="140" HorizontalAlignment="Left" VerticalAlignment="Center">
<RadioButton Height="25" Content="主地震仪" FontSize="13" IsChecked="{Binding MainSeisIsChecked}" Foreground="{DynamicResource PrimaryTextBrush}"/>
<RadioButton Height="25" Content="备地震仪" FontSize="13" IsChecked="False" Foreground="{DynamicResource PrimaryTextBrush}"/>
</hc:ButtonGroup>
<Image Grid.Row="1" Source="{Binding ImageSourceSetZero}" Height="40" Width="40"
Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,10,0"/>
<Image Grid.Row="3" Source="{Binding ImageSourceSetLevel}" Height="40" Width="40"
Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,5"/>
<Grid Grid.Row="1" VerticalAlignment="Bottom" Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<!--<ColumnDefinition Width="1*"/>-->
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震仪调零:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding}"/>-->
<Button Grid.Column="1" Name="SeisZeroSetStart" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
IsEnabled="{Binding SeisZeroSetStartButtonIsEnabled}"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="开启" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="SeisZeroSetStart" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" Name="SeisZeroSetStop" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding SeisZeroSetStopButtonIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="停止" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="SeisZeroSetStop" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<TextBlock Grid.Row="2" Name="OpenSetMsg" Text="{Binding OpenSetMsg}" FontSize="14"
Foreground="{Binding OpenSetMsgForeground}" Visibility="{Binding OpenSetMsgVisibility}"
VerticalAlignment="Center" Margin="280,0,0,0"/>
<TextBlock Grid.Row="2" Name="CloseSetMsg" Text="{Binding CloseSetMsg}" FontSize="14"
Foreground="{Binding CloseSetMsgForeground}" Visibility="{Binding CloseSetMsgVisibility}"
VerticalAlignment="Center" Margin="420,0,0,0"/>
<Grid Grid.Row="3" VerticalAlignment="Top" Margin="0,10,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<!--<ColumnDefinition Width="1*"/>-->
<ColumnDefinition Width="2.5*"/>
<ColumnDefinition Width="2.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震仪调平:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10"
Background="{Binding}"/>-->
<Button Grid.Column="1" Name="SeisLevelSetStart" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding SeisLevelSetStartButtonIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Start.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="开启" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="SeisLevelSetStart" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" Name="SeisLevelSetStop" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="90" Height="35" Background="Transparent"
BorderThickness="1" BorderBrush="White" Style="{StaticResource ButtonStyle}"
Command="{Binding Switch}" IsEnabled="{Binding SeisLevelSetStopButtonIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Stop.png" Stretch="Fill" Width="16"
Height="16"/>
<TextBlock Text="停止" Foreground="White" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="SeisLevelSetStop" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<!--<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="电力载波机状态:"/>
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_ProBoard_PowCarrier_State}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="光电交换机状态:"/>
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_ProBoard_OptSwitch_State}"/>
</Grid>-->
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="主地震仪状态:"/>
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_ProBoard_Seis1_State}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="备地震仪状态:"/>
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_ProBoard_Seis2_State}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="电磁状态:"/>
<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_ProBoard_Elect_State}"/>
</Grid>
<!--<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震仪反馈电源状态:"/>
--><!--<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="Green"/>--><!--
<TextBlock Grid.Column="1" Text="{Binding BSSM.Seis_Power_State}" FontSize="14" Foreground="Green" HorizontalAlignment="Center"
VerticalAlignment="Center" Margin="-5,0,0,0"/>
</Grid>-->
</Grid>
<Grid Grid.Column="4" Margin="0,0,20,0">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<!--<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震仪反馈供电方式:"/>
--><!--<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="Green"/>--><!--
<TextBlock Grid.Column="1" Text="{Binding BSSM.Seis_Power_SupplyMethod}" Foreground="Green" FontSize="15"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="-5,0,0,0"/>
</Grid>-->
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="电力载波机供电:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_PowCarrier}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_PowCarrier}" Height="40" Width="40"
Stretch="Fill"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="光电交换机供电:"/>
<!--<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="20" Height="20" CornerRadius="10" Margin="5,0,0,0"
Background="{Binding BSSM.JunBox_OptSwitch}"/>-->
<Image Grid.Column="1" Source="{Binding BSSM.JunBox_OptSwitch}" Height="40" Width="40"
Stretch="Fill"/>
</Grid>
</Grid>
</Grid>
</GroupBox>
</Grid>
<!--数据请求间隔时间-->
<!--<Grid Grid.Row="3">
<GroupBox Header="数据请求周期设置">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="地震仪状态数据:" FontSize="17" Foreground="White" VerticalAlignment="Center"/>
<hc:ButtonGroup Grid.Row="2" Style="{StaticResource ButtonGroupSolid}" Margin="10,0,20,0"
Width="140" HorizontalAlignment="Left" VerticalAlignment="Center">
<RadioButton Height="28" Content="主地震仪" FontSize="13" IsChecked="{Binding MainSeisIsChecked}" Foreground="{DynamicResource PrimaryTextBrush}"/>
<RadioButton Height="28" Content="备地震仪" FontSize="13" IsChecked="{Binding BackupSeisIsChecked}" Foreground="{DynamicResource PrimaryTextBrush}"/>
</hc:ButtonGroup>
<CheckBox Content="周期请求数据" Foreground="White" FontSize="18"
IsChecked="{Binding IsChecked}" VerticalAlignment="Center"/>
<TextBlock Text=" 请求周期: " FontSize="16" Foreground="White" VerticalAlignment="Center"/>
<TextBox Name="SeisStateAskTextBox" Text="{Binding ftpList.datagrid2Path}"
Foreground="Black" FontSize="16" Width="100" Height="28"
TextAlignment="Left" VerticalContentAlignment="Center"/>
<TextBlock Text=" s" FontSize="17" Foreground="White" VerticalAlignment="Center"/>
</StackPanel>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="升压站状态数据: " FontSize="17" Foreground="White" VerticalAlignment="Center"/>
<CheckBox Content="周期请求数据" Foreground="White" FontSize="18"
IsChecked="{Binding IsChecked}" VerticalAlignment="Center"/>
<TextBlock Text=" 请求周期: " FontSize="16" Foreground="White" VerticalAlignment="Center"/>
<TextBox Name="BoosterStationStateAskTextBox" Text="{Binding ftpList.datagrid2Path}"
Foreground="Black" FontSize="16" Width="100" Height="28"
TextAlignment="Left" VerticalContentAlignment="Center"/>
<TextBlock Text=" s" FontSize="17" Foreground="White" VerticalAlignment="Center"/>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</Grid>-->
<!--地震仪参数设置-->
<!--<Grid Grid.Row="3">
<GroupBox Header="地震仪参数设置">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="台号:"/>
<TextBox Name="StationNo" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242"
BorderThickness="0,0,0,1" CaretBrush="White">
<TextBox.Text>
<Binding NotifyOnValidationError="True"
Path="EQPS.StationNo"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Num"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="台站名称:"/>
<TextBox Name="StationName" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1" Text="{Binding EQPS.StationName}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="台站缩写:"/>
<TextBox Name="StationAbbreviation" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1" Text="{Binding EQPS.StationShortName}"/>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震计总数:"/>
<TextBox Name="TotalSeismometers" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.EarthQuakeCount}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="总通道数:"/>
<TextBox Grid.Column="1" Name="TotalNumberOfChannels" Width="110"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White" CaretBrush="White"
Background="Transparent" BorderBrush="#FF424242" Margin="10,0,0,0"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.ChannelsNo}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="纬度(°)"/>
<TextBox Grid.Column="1" Name="Latitude" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.WD}"/>
</Grid>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="经度(°)"/>
<TextBox Name="Longitude" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.EarthQuakeCount}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="高程(cm)"/>
<TextBox Grid.Column="1" Name="Altitude" Width="110"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White" CaretBrush="White"
Background="Transparent" BorderBrush="#FF424242" Margin="10,0,0,0"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.GaoCheng}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="启动日期:"/>
<TextBox Grid.Column="1" Name="StartDate" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.StartTime}"/>
</Grid>
</Grid>
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="台网标示:"/>
<TextBox Name="NetworkMarking" Grid.Column="1" Width="110" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White"
Background="Transparent" BorderBrush="#FF424242" CaretBrush="White"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.Station_Id}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.4*"/>
<ColumnDefinition Width="0.6*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="软件版本:"/>
<TextBox Grid.Column="1" Name="SoftwareVersion" Width="160"
HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16"
HorizontalContentAlignment="Center" Foreground="White" CaretBrush="White"
Background="Transparent" BorderBrush="#FF424242" Margin="10,0,0,0"
BorderThickness="0,0,0,1.2" Text="{Binding EQPS.Software_Version}"/>
</Grid>
<Grid Grid.Row="3">
<hc:ButtonGroup Grid.Row="2" Style="{StaticResource ButtonGroupSolid}"
Width="200" HorizontalAlignment="Center" VerticalAlignment="Center">
<RadioButton Height="32" Content="主地震仪" FontSize="13" IsChecked="True" Foreground="{DynamicResource PrimaryTextBrush}"/>
<RadioButton Height="32" Content="备地震仪" FontSize="13" IsChecked="{Binding BackupSeisIsChecked}" Foreground="{DynamicResource PrimaryTextBrush}"/>
</hc:ButtonGroup>
</Grid>
</Grid>
<Grid Grid.Column="4">
<Grid.RowDefinitions>
<RowDefinition Height="0.2*"/>
<RowDefinition/>
<RowDefinition Height="0.5*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal" Margin="0,0,0,-10">
<Button Name="EarthQuakeParaSetBtn" Width="140" Height="40" BorderThickness="1"
HorizontalAlignment="Left" VerticalAlignment="Center"
Command="{Binding ParaSetSwitch}"
Background="Transparent" BorderBrush="#BBBBBB"
Style="{StaticResource ButtonStyle}"
IsEnabled="{Binding EarthQuakeParaSetBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Set.png" Stretch="Fill"
Width="20" Height="20"/>
<TextBlock Text="参数设置"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="15,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="EarthQuakeParaSetBtn" Path="Name" />
<Binding ElementName="StationNo" Path="Text" />
<Binding ElementName="StationName" Path="Text" />
<Binding ElementName="StationAbbreviation" Path="Text" />
<Binding ElementName="TotalSeismometers" Path="Text" />
<Binding ElementName="TotalNumberOfChannels" Path="Text" />
<Binding ElementName="Latitude" Path="Text" />
<Binding ElementName="Longitude" Path="Text" />
<Binding ElementName="Altitude" Path="Text" />
<Binding ElementName="StartDate" Path="Text" />
<Binding ElementName="NetworkMarking" Path="Text" />
<Binding ElementName="SoftwareVersion" Path="Text" />
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</StackPanel>
<TextBlock Grid.Row="2" Name="SeisParaMsg" Text="{Binding SeisParaMsg}" FontSize="14"
Foreground="{Binding SeisParaMsgForeground}" Visibility="{Binding SeisParaMsgVisibility}"
VerticalAlignment="Center" HorizontalAlignment="Center"/>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal" Margin="0,-10,0,0">
<Button Name="EarthQuakeParaReadBtn" Width="140" Height="40" BorderThickness="1"
HorizontalAlignment="Left" VerticalAlignment="Center"
Command="{Binding ParaSetSwitch}"
Background="Transparent" BorderBrush="#BBBBBB"
Style="{StaticResource ButtonStyle}"
IsEnabled="{Binding EarthQuakeParaReadBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="8"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/Set.png" Stretch="Fill"
Width="20" Height="20"/>
<TextBlock Text="参数读取"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="15,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="EarthQuakeParaReadBtn" Path="Name" />
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</StackPanel>
</Grid>
</Grid>
</GroupBox>
</Grid>-->
<!--地震仪状态数据-->
<!--<Grid Grid.Row="3">
<GroupBox Header="地震仪状态数据">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="外部电压(V)"/>
<TextBlock Name="Out_Vol" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Out_Vol}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="后备电池电压(V)"/>
<TextBlock Name="Backup_Vol" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Backup_Vol}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="压力:"/>
<TextBlock Name="Pre" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Pre}"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="温度(°)"/>
<TextBlock Name="Tem" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Tem}"/>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震计倾斜角度(°)"/>
<TextBlock Name="Sei_Tilt_Angle" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Sei_Tilt_Angle}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="OBS倾斜角度(°)"/>
<TextBlock Name="OBS_Tilt_Angle" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.OBS_Tilt_Angle}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="种差(μs)"/>
<TextBlock Name="Species_Dif" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Species_Dif}"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="频差(ppm)"/>
<TextBlock Name="Frequency_Dif" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Frequency_Dif}"/>
</Grid>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="CF卡总空间(KB)"/>
<TextBlock Name="CF_Total_Cap" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.CF_Total_Cap}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="CF卡可用空间(KB)"/>
<TextBlock Name="CF_Usable_Cap" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.CF_Usable_Cap}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="SD1卡总空间(KB)"/>
<TextBlock Name="SD_Total_Cap1" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.SD_Total_Cap1}"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="SD1卡可用空间(KB)"/>
<TextBlock Name="SD_Usable_Cap1" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.SD_Usable_Cap1}"/>
</Grid>
</Grid>
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="SD2卡总空间(KB)"/>
<TextBlock Name="SD_Total_Cap2" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.SD_Total_Cap2}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="SD2卡可用空间(KB)"/>
<TextBlock Name="SD_Usable_Cap2" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.SD_Usable_Cap2}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震计U零点(V)"/>
<TextBlock Name="Sei_U_Point" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Sei_U_Point}"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震计V零点(V)"/>
<TextBlock Name="Sei_V_Point" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Sei_V_Point}"/>
</Grid>
</Grid>
<Grid Grid.Column="4">
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="地震计W零点(V)"/>
<TextBlock Name="Sei_W_Point" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.Sei_W_Point}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="寻北角度(°)"/>
<TextBlock Name="North_Angle" Grid.Column="1" Width="70" Margin="10,0,0,0"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White"
Text="{Binding EQSM.North_Angle}"/>
</Grid>
</Grid>
</Grid>
</GroupBox>
</Grid>-->
</Grid>
</ScrollViewer>
</UserControl>