20240815_FJEQ_upperpc_seabed/FujianEarthquake_seabed_UI/FujianEarthquake/Views/SystemControlView.xaml
XuMin bcc3d4a66b 1 将岸基通信由网口改为串口;
2 初步完成与岸基电源的测试;
2024-11-01 16:05:11 +08:00

1291 lines
89 KiB
XML

<UserControl x:Class="FujianEarthquake.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:FujianEarthquake.Views"
xmlns:Converter="clr-namespace:FujianEarthquake.Common"
xmlns:ConnectConvert="clr-namespace:FujianEarthquake.Common.ConnectConvert"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
Name="SystemControlPage"
Height="750" Width="1600">
<UserControl.Resources>
<Converter:NegateConverter x:Key="NegateConverter"/>
<Converter:BtnConvert x:Key="BtnConvert" />
<ConnectConvert:ConnectConvertClient x:Key="ConnectConvertClient" />
<ConnectConvert:ConnectConvertServer x:Key="ConnectConvertServer" />
<LinearGradientBrush x:Key="AlternatingBackgroundBrush" StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#4D006FBE" Offset="0"/>
<GradientStop Color="Transparent" Offset="1"/>
</LinearGradientBrush>
<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 TargetType="TextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox" >
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}" CornerRadius="4" 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>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Margin="8,0,10,18">
<Grid.RowDefinitions>
<RowDefinition Height="2.5*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.Background>
<ImageBrush ImageSource="../Assets/Images/SystemControl/ConnectStateBackground.png" Stretch="Fill"/>
</Grid.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="接驳盒状态信息" FontSize="16" FontFamily="{StaticResource SourceHanSansCNBold}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="20,7,0,0"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!--Socket通信①-->
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"
Width="200" Margin="0,10,0,0"
Orientation="Horizontal" Background="{StaticResource AlternatingBackgroundBrush}">
<TextBlock Margin="30,0,0,0" VerticalAlignment="Center" FontSize="14"
Foreground="#FF3094E8" Text="海底基站通信1" FontFamily="{StaticResource SourceHanSansCNBold}"/>
</StackPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="10,0,-5,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="IP" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<TextBox Name="SubmarineIP1" Margin="20,0,0,0" Width="150" Height="40" VerticalAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel1.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="Port" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<TextBox Name="SubmarinePort1" Width="150" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0" VerticalContentAlignment="Center"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel1.IsOpened, Converter={StaticResource NegateConverter}}"
FontFamily="{StaticResource SourceHanSansCNRegular}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="150" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center" BorderBrush="Transparent"
Command="{Binding Socket1DoOpenCommand}"
Background="#FF006FBE">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Link.png" Stretch="Fill" Width="15" Height="15"/>
<TextBlock Text="{Binding serverModel1.IsOpened, Converter={StaticResource ResourceKey=ConnectConvertServer}}"
HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
Margin="10,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--Socket通信②-->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center"
Height="30" Width="200" Margin="0,10,0,0"
Orientation="Horizontal" Background="{StaticResource AlternatingBackgroundBrush}">
<TextBlock Margin="30,0,0,0" VerticalAlignment="Center" FontSize="14"
Foreground="#FF3094E8" Text="海底基站通信2" FontFamily="{StaticResource SourceHanSansCNBold}"/>
</StackPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="10,0,-5,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="IP" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<TextBox Name="SubmarineIP2" Margin="20,0,0,0" Width="150" Height="40" VerticalAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel2.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo2.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="Port"/>
<TextBox Name="SubmarinePort2" Width="150" Height="40" VerticalAlignment="Center" FontSize="16"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0" VerticalContentAlignment="Center"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel2.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo2.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="150" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket2DoOpenCommand}" BorderBrush="Transparent"
Background="#FF006FBE">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Link.png" Stretch="Fill" Width="15" Height="15"/>
<TextBlock Text="{Binding serverModel2.IsOpened, Converter={StaticResource ResourceKey=ConnectConvertServer}}"
HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
Margin="10,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--Socket通信②-->
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"
Width="200" Margin="0,10,0,0"
Orientation="Horizontal" Background="{StaticResource AlternatingBackgroundBrush}">
<TextBlock Margin="30,0,0,0" VerticalAlignment="Center" FontSize="14"
Foreground="#FF3094E8" Text="海底基站通信3" FontFamily="{StaticResource SourceHanSansCNBold}"/>
</StackPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="10,0,-5,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="IP" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<TextBox Name="SubmarineIP3" Margin="20,0,0,0" Width="150" Height="40" VerticalAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel3.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo3.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="Port" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<TextBox Name="SubmarinePort3" Width="150" Height="40" VerticalAlignment="Center" FontSize="16"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0" VerticalContentAlignment="Center"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding serverModel3.IsOpened, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketServerInfo3.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="150" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket3DoOpenCommand}" BorderBrush="Transparent"
Background="#FF006FBE" Style="{StaticResource ButtonStyle}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Link.png" Stretch="Fill" Width="15" Height="15"/>
<TextBlock Text="{Binding serverModel3.IsOpened, Converter={StaticResource ResourceKey=ConnectConvertServer}}"
HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
Margin="10,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--升压站通信-->
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="0.1*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"
Width="200" Margin="0,10,0,0"
Orientation="Horizontal" Background="{StaticResource AlternatingBackgroundBrush}">
<TextBlock Margin="30,0,0,0" VerticalAlignment="Center" FontSize="14"
Foreground="#FF3094E8" Text="岸基站通信" FontFamily="{StaticResource SourceHanSansCNBold}"/>
</StackPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="10,0,-5,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="IP" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<!--<TextBox Name="ShoreIP1" Margin="20,0,0,0" Width="150" Height="40" VerticalAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo1.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="IP"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>-->
<ComboBox Name="ShorePortName" Margin="20,0,0,0" Width="150" Height="40" VerticalAlignment="Center"
HorizontalContentAlignment="Center" FontSize="16" Foreground="#FF99B9D0"
IsEnabled="{Binding comModel.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo.PortName}" Background="#A6022038"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
</StackPanel>
<StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontSize="14"
Foreground="White" Text="Port"/>
<!--<TextBox Name="ShorePort1" Width="150" Height="40" VerticalAlignment="Center" FontSize="16"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0" VerticalContentAlignment="Center"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel1.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo1.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<Converter:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>-->
<ComboBox Name="ShoreBaudRate" Width="150" Height="40" VerticalAlignment="Center"
HorizontalContentAlignment="Center" FontSize="16" Foreground="#FF99B9D0"
IsEnabled="{Binding comModel.IsConnected, Converter={StaticResource NegateConverter}}"
Text="{Binding SerialInfo.BaudRate}" Background="#A6022038"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
VerticalContentAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"/>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="150" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding ComDoConnectCommand}" BorderBrush="Transparent"
Background="#FF006FBE" 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/SystemControl/Link.png" Stretch="Fill" Width="15" Height="15"/>
<TextBlock Text="{Binding comModel.IsConnected, Converter={StaticResource ResourceKey=ConnectConvertClient}}"
HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNRegular}"
Margin="10,0,0,0" FontSize="14" Foreground="White"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
<Grid Grid.Row="1" Margin="0,10,0,0">
<Grid.Background>
<ImageBrush ImageSource="../Assets/Images/SystemControl/RemoteControlBackground.png" Stretch="Fill"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="33"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="远程控制-海底基站" FontSize="16" FontFamily="{StaticResource SourceHanSansCNBold}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="20,6,0,0"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="405" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="主地震仪电源" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="30,0,0,0"/>
<Image Source="{Binding JBSM.JunBox_Seis1}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="140,0,0,0" Height="45"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="MainSeisPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding MainSeisPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</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>
<TextBlock Grid.Column="2" Name="MainSeisMsg" Text="{Binding MainSeisMsg}"
FontSize="12" Foreground="{Binding MainSeisMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding MainSeisMsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding MainSeisPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNLight}"/>
</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="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="405" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="备地震仪电源" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="30,0,0,0"/>
<Image Source="{Binding JBSM.JunBox_Seis2}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="140,0,0,0" Height="45"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BackupSeisPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BackupSeisPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</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>
<TextBlock Grid.Column="2" Name="BackupSeisMsg" Text="{Binding BackupSeisMsg}"
FontSize="12" Foreground="{Binding BackupSeisMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BackupSeisMsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BackupSeisPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNLight}"/>
</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="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="405" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="摄像电源" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="30,0,0,0"/>
<Image Source="{Binding JBSM.JunBox_Video}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="170,0,0,0" Height="45"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="VideoPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding VideoPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="VideoPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="VideoMsg" Text="{Binding VideoMsg}"
FontSize="12" Foreground="{Binding VideoMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding VideoMsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding VideoPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="VideoPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="405" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="摄像灯电源" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="30,0,0,0"/>
<Image Source="{Binding JBSM.JunBox_Lamp}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="155,0,0,0" Height="45"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="LampPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding LampPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="LampPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="LampMsg" Text="{Binding LampMsg}"
FontSize="12" Foreground="{Binding LampMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding LampMsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding LampPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="LampPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
</Grid>
<Grid Grid.Column="1" Margin="0,0,10,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="主地震仪保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding JBSM.JunBox_ProBoard_Seis1_State}"
Height="65" Width="140" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="备地震仪保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding JBSM.JunBox_ProBoard_Seis2_State}"
Height="65" Width="140" Margin="0,10,0,0"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="摄像保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding JBSM.JunBox_ProBoard_Video_State}"
Height="65" Width="140" Margin="0,10,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="光电转换器电源状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding JBSM.JunBox_PhoConverter_Power}"
Height="65" Width="140" Margin="0,10,0,0"/>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
<Grid Grid.Column="1" Margin="-3,0,15,18">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.Background>
<ImageBrush ImageSource="../Assets/Images/SystemControl/ParaSetBackground.png" Stretch="Fill"/>
</Grid.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<TextBlock Text="参数设置—岸基站" FontSize="16" FontFamily="{StaticResource SourceHanSansCNBold}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="20,7,0,0"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
<Button Name="ResetParaDataBtn" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="37" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ResetDataCommand}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Reset.png" Stretch="Fill" Width="18"
Height="18"/>
<TextBlock Text="读取" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
</Button>
<Button Name="ParaSettingBtn" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="37" Background="#80052945" Margin="15,0,20,0"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ParaSettingCommand}" IsEnabled="{Binding ParaSettingBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Set.png" Stretch="Fill" Width="18"
Height="18"/>
<TextBlock Text="设置" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
<TextBlock Grid.Row="1" Name="ParaSettingMsg" Text="{Binding ParaSettingMsg}"
FontSize="12" Foreground="{Binding ParaSettingMsgForeground}" Margin="0,0,30,-5"
HorizontalAlignment="Right" Visibility="{Binding ParaSettingMsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0">
<TextBlock Text="电压设置值" FontSize="14" Foreground="White" Background="Transparent"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBox Name="SetVoltageTB" Width="180" Height="40" VerticalAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
Margin="0,10,0,0" FontFamily="{StaticResource SourceHanSansCNRegular}"
Text="{Binding SetVoltage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<TextBlock Background="Transparent" Foreground="White" HorizontalAlignment="Right"
VerticalAlignment="Center" Text=" V" FontSize="13" Margin="10,10,0,0"/>
</StackPanel>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center"
VerticalAlignment="Top" Margin="0,10,0,0">
<TextBlock Text="电流设置值" FontSize="14" Foreground="White" Background="Transparent"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBox Name="SetCurrentTB" Width="180" Height="40" VerticalAlignment="Center" HorizontalContentAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" Margin="0,10,0,0"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Text="{Binding SetCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<TextBlock Background="Transparent" Foreground="White" HorizontalAlignment="Right"
VerticalAlignment="Center" Text=" A" FontSize="13" Margin="10,10,0,0"/>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
<Grid Grid.Row="1" Margin="0,10,0,0">
<Grid.Background>
<ImageBrush ImageSource="../Assets/Images/SystemControl/ParaSetBackground.png" Stretch="Fill"/>
</Grid.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<TextBlock Text="保护值设置—岸基站" FontSize="16" FontFamily="{StaticResource SourceHanSansCNBold}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="20,7,0,0"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
<Button Name="ResetProDataBtn" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="37" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ResetDataCommand}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Reset.png" Stretch="Fill" Width="18"
Height="18"/>
<TextBlock Text="读取" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
</Button>
<Button Name="ProSettingBtn" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="37" Background="#80052945" Margin="15,0,20,0"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ProSettingCommand}" IsEnabled="{Binding ProSettingBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Set.png" Stretch="Fill" Width="18"
Height="18"/>
<TextBlock Text="设置" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
<TextBlock Grid.Row="1" Name="ProSettingMsg" Text="{Binding ProSettingMsg}"
FontSize="12" Foreground="{Binding ProSettingMsgForeground}" Margin="0,0,30,-5"
HorizontalAlignment="Right" Visibility="{Binding ProSettingMsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0">
<TextBlock Text="过压保护值" FontSize="14" Foreground="White" Background="Transparent"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBox Name="ProVoltageTB" Width="180" Height="40" VerticalAlignment="Center" HorizontalContentAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" Margin="0,10,0,0"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Text="{Binding ProVoltage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<TextBlock Background="Transparent" Foreground="White" HorizontalAlignment="Right"
VerticalAlignment="Center" Text=" V" FontSize="13" Margin="10,10,0,0"/>
</StackPanel>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center"
VerticalAlignment="Top" Margin="0,10,0,0">
<TextBlock Text="过流保护值" FontSize="14" Foreground="White" Background="Transparent"
HorizontalAlignment="Left" VerticalAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBox Name="ProCurrentTB" Width="180" Height="40" VerticalAlignment="Center" HorizontalContentAlignment="Center"
Background="#A6022038" VerticalContentAlignment="Center" Margin="0,10,0,0"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Text="{Binding ProCurrent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<TextBlock Background="Transparent" Foreground="White" HorizontalAlignment="Right"
VerticalAlignment="Center" Text=" A" FontSize="13" Margin="10,10,0,0"/>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Grid>
<Grid Grid.Row="2" Margin="0,10,0,0">
<Grid.Background>
<ImageBrush ImageSource="../Assets/Images/SystemControl/SwitchSetBackground.png" Stretch="Fill"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="38"/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="开关设置—岸基站" FontSize="16" FontFamily="{StaticResource SourceHanSansCNBold}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="20,8,0,0"/>
<Grid Grid.Row="1" Margin="10,0,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Width="265" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="海底基站电源" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="20,0,0,0"/>
<Image Source="{Binding OutputState}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="58,0,0,0" Height="45"/>
</StackPanel>
</Border>
<TextBlock Grid.Column="1" Name="OutputPowerOpenMsg" Text="{Binding OutputPowerOpenMsg}"
FontSize="12" Foreground="{Binding OutputPowerOpenMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OutputPowerOpenMsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="1" Name="OutputPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OutputPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="OutputPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="OutputPowerCloseMsg" Text="{Binding OutputPowerCloseMsg}"
FontSize="12" Foreground="{Binding OutputPowerCloseMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OutputPowerCloseMsgVisibility}"
VerticalAlignment="Bottom"
FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OutputPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" 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="OutputPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="2" Margin="10,0,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Width="265" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="输出过压保护" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="20,0,0,0"/>
<Image Source="{Binding OverVolProAllowState}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="58,0,0,0" Height="45"/>
</StackPanel>
</Border>
<TextBlock Grid.Column="1" Name="OverVolProPowerOpenMsg" Text="{Binding OverVolProPowerOpenMsg}"
FontSize="12" Foreground="{Binding OverVolProPowerOpenMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OverVolProPowerOpenMsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="1" Name="OverVolProPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OverVolProPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="OverVolProPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="OverVolProPowerCloseMsg" Text="{Binding OverVolProPowerCloseMsg}"
FontSize="12" Foreground="{Binding OverVolProPowerCloseMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OverVolProPowerCloseMsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OverVolProPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" 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="OverVolProPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
<Grid Grid.Row="3" Margin="10,0,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Width="265" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock Text="输出过流保护" FontSize="16" FontFamily="{StaticResource SourceHanSansCNNormal}"
Foreground="White" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="20,0,0,0"/>
<Image Source="{Binding OverCurProAllowState}" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="58,0,0,0" Height="45"/>
</StackPanel>
</Border>
<TextBlock Grid.Column="1" Name="OverCurProPowerOpenMsg" Text="{Binding OverCurProPowerOpenMsg}"
FontSize="12" Foreground="{Binding OverCurProPowerOpenMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OverCurProPowerOpenMsgVisibility}"
VerticalAlignment="Bottom" Margin="0,0,0,3" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="1" Name="OverCurProPowerPicker" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OverCurProPowerOpenBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Open.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="打开" Foreground="#FF00AEFF" Margin="10,0,0,0" FontSize="14"
VerticalAlignment="Center"/>
</StackPanel>
</Button.Content>
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource ResourceKey=BtnConvert}">
<MultiBinding.Bindings>
<Binding ElementName="OverCurProPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="OverCurProPowerCloseMsg" Text="{Binding OverCurProPowerCloseMsg}"
FontSize="12" Foreground="{Binding OverCurProPowerCloseMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding OverCurProPowerCloseMsgVisibility}"
VerticalAlignment="Bottom" Margin="0,0,0,3" FontFamily="{StaticResource SourceHanSansCNLight}"/>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding ShoreBaseStationSwitchCommand}" IsEnabled="{Binding OverCurProPowerCloseBtnIsEnabled}">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="4"/>
</Style>
</Button.Resources>
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/Images/SystemControl/Close.png" Stretch="Fill" Width="20"
Height="20"/>
<TextBlock Text="关闭" Foreground="#FFFF384D" 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="OverCurProPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>