20240301_JSEQ_upperpc/JiangsuEarthquakeNowUI/JiangsuEarthquake/Views/SystemControlView.xaml
2024-11-01 15:54:08 +08:00

1249 lines
84 KiB
XML

<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"
Name="SystemControlPage"
d:DesignHeight="750" d:DesignWidth="1600">
<UserControl.Resources>
<converters:NegateConverter x:Key="NegateConverter"/>
<converters:BtnConvert x:Key="BtnConvert" />
<converters:ConnectConvert2 x:Key="ConnectConvert2" />
<converters:ConnectConvert3 x:Key="ConnectConvert3" />
<converters:ConnectConvert5 x:Key="ConnectConvert5" />
<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="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>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2.5*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<!--系统连接状态-->
<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/>
<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"
Orientation="Horizontal" Height="30"
Width="200" Margin="0,10,0,0"
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="MUIP1" Width="145" Height="40" VerticalAlignment="Center" Background="#A6022038"
HorizontalAlignment="Center" FontSize="16" Foreground="White" CaretBrush="#FF99B9D0"
FontFamily="{StaticResource SourceHanSansCNRegular}" Margin="20,0,0,0"
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>
<converters: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="Port1" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
FontFamily="{StaticResource SourceHanSansCNRegular}"
Foreground="White" Background="#A6022038" 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.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket1DoOpenCommand}" 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 serverModel1.IsOpened, Converter={StaticResource ResourceKey=ConnectConvert5}}"
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="基站通信 ②" 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="MUIP2" Width="145" Margin="20,0,0,0" Height="40" VerticalAlignment="Center" Background="#A6022038"
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>
<converters: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="Port2" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" 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.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" 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=ConnectConvert5}}"
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="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="升压站通信 ①" 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="SYZIP1" Margin="20,0,0,0" Width="145" Height="40" VerticalAlignment="Center" Background="#A6022038"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"
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="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="SYZPort1" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0"
FontFamily="{StaticResource SourceHanSansCNRegular}"
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>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket1DoConnectCommand}" 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 clientModel1.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
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="SYZIP2" Margin="20,0,0,0" Width="145" Height="40" VerticalAlignment="Center" Background="#A6022038"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"
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="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="SYZPort2" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0"
FontFamily="{StaticResource SourceHanSansCNRegular}"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" 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="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket2DoConnectCommand}" 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 clientModel2.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
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="4">
<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="ZSWLIP1" Margin="20,0,0,0" Width="145" Height="40" VerticalAlignment="Center" Background="#A6022038"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"
IsEnabled="{Binding clientModel3.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo3.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters: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="ZSWLPort1" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
IsEnabled="{Binding clientModel3.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo3.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket3DoConnectCommand}" 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/ConnectState.png" Stretch="Fill" Width="20" Height="20"/>
<TextBlock Text="{Binding clientModel3.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="10,0,0,0" FontSize="14" Foreground="White"
FontFamily="{StaticResource SourceHanSansCNRegular}"/>
</StackPanel>
</Button.Content>
</Button>
</StackPanel>
</Grid>
<!--众山物联通信-->
<Grid Grid.Column="5">
<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="ZSWLIP2" Margin="20,0,0,0" Width="145" Height="40" VerticalAlignment="Center" Background="#A6022038"
HorizontalAlignment="Center" FontSize="16" Foreground="#FF99B9D0" CaretBrush="#FF99B9D0"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"
IsEnabled="{Binding clientModel4.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo4.IP"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters: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="ZSWLPort2" Width="145" Height="40" VerticalAlignment="Center" FontSize="16"
Foreground="#FF99B9D0" Background="#A6022038" CaretBrush="#A6022038"
BorderThickness="1.2,1.2,1.2,1.2" BorderBrush="#FF63829B" HorizontalContentAlignment="Center"
FontFamily="{StaticResource SourceHanSansCNRegular}"
IsEnabled="{Binding clientModel4.IsConnected, Converter={StaticResource NegateConverter}}">
<TextBox.Text>
<Binding NotifyOnValidationError="True" Path="SocketInfo4.Port"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<converters:CustomValidationRule ValidateType="Port"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</StackPanel>
<StackPanel Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal">
<Button Width="145" Height="40" Margin="40,0,0,0" HorizontalAlignment="Left"
VerticalAlignment="Center"
Command="{Binding Socket4DoConnectCommand}" 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 clientModel4.IsConnected, Converter={StaticResource ResourceKey=ConnectConvert2}}"
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.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1.3*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<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="3*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Margin="10,0,0,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Margin="30,0,0,0"
FontSize="16" Foreground="White" Text="海底基站电源" FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding BSSM.JunBox_Power}" Height="45" HorizontalAlignment="Right"
Stretch="Fill" VerticalAlignment="Center" Margin="110,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BaseStationPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BaseStationPowerOpenBtnIsEnabled}">
<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="BaseStationPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BaseStationPowerCloseBtnIsEnabled}">
<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="BaseStationPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="BaseStationMsg" Text="{Binding BaseStationMsg}"
FontSize="12" Foreground="{Binding BaseStationMsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding BaseStationMsgVisibility}"
VerticalAlignment="Bottom" Margin="-80,5,0,0"/>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0"
FontSize="16" Foreground="White" Text="主地震仪电源"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding BSSM.JunBox_Seis1}" Height="45"
Stretch="Fill" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="110,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="MainSeisPowerPicker" HorizontalAlignment="Center" 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>
<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>
<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}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="备地震仪电源"
FontFamily="{StaticResource SourceHanSansCNNormal}" Margin="30,0,0,0"/>
<Image Source="{Binding BSSM.JunBox_Seis2}" Height="45" HorizontalAlignment="Right"
Stretch="Fill" VerticalAlignment="Center" Margin="110,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BackupSeisPowerPicker" HorizontalAlignment="Center" 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>
<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" 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>
<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}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="{StaticResource SourceHanSansCNNormal}"
FontSize="16" Foreground="White" Text="电磁电源" Margin="30,0,0,0"/>
<Image Source="{Binding BSSM.JunBox_Elect}" Height="45" HorizontalAlignment="Right"
Stretch="Fill" VerticalAlignment="Center" Margin="145,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="ElectPowerPicker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding ElectPowerOpenBtnIsEnabled}">
<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="ElectPowerPicker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding ElectPowerCloseBtnIsEnabled}">
<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" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</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>
<TextBlock Grid.Column="2" Name="ElectMsg" Text="{Binding ElectMsg}"
FontSize="12" Foreground="{Binding ElectMsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding ElectMsgVisibility}" FontFamily="{StaticResource SourceHanSansCNLight}"
VerticalAlignment="Bottom" Margin="-80,5,0,0"/>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="2*"/>
<RowDefinition/>
<RowDefinition Height="2*"/>
<RowDefinition/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="主地震仪保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Height="65" Width="140"
Source="{Binding BSSM.JunBox_ProBoard_Seis1_State}"/>
<TextBlock Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="备地震仪保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center"
Height="65" Width="140"
Source="{Binding BSSM.JunBox_ProBoard_Seis2_State}"/>
<TextBlock Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="电磁保护状态"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center"
Height="65" Width="140"
Source="{Binding BSSM.JunBox_ProBoard_Elect_State}"/>
</Grid>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="38"/>
<RowDefinition/>
<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">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="370" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="设备1电源" Margin="30,0,0,0"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding BSSMS.BoosterStation_Device1}" Height="44"
Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="130,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BoosterStationPower1Picker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower1OpenBtnIsEnabled}">
<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="BoosterStationPower1Picker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower1CloseBtnIsEnabled}">
<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="BoosterStationPower1Picker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="BoosterStationPower1Msg" Text="{Binding BoosterStationPower1Msg}"
FontSize="12" Foreground="{Binding BoosterStationPower1MsgForeground}"
HorizontalAlignment="Left" Visibility="{Binding BoosterStationPower1MsgVisibility}"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="设备2电源" Margin="30,0,0,0"
FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding BSSMS.BoosterStation_Device2}" Height="45" Margin="135,0,0,0"
Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BoosterStationPower2Picker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower2OpenBtnIsEnabled}">
<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="BoosterStationPower2Picker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower2CloseBtnIsEnabled}">
<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="BoosterStationPower2Picker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="BoosterStationPower2Msg" Text="{Binding BoosterStationPower2Msg}"
FontSize="12" Foreground="{Binding BoosterStationPower2MsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BoosterStationPower2MsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</Grid>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="设备3电源"
FontFamily="{StaticResource SourceHanSansCNNormal}"
Margin="30,0,0,0"/>
<Image Source="{Binding BSSMS.BoosterStation_Device3}" Height="45"
Stretch="Fill" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="135,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BoosterStationPower3Picker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower3OpenBtnIsEnabled}">
<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="BoosterStationPower3Picker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower3CloseBtnIsEnabled}">
<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="BoosterStationPower3Picker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="BoosterStationPower3Msg" Text="{Binding BoosterStationPower3Msg}"
FontSize="12" Foreground="{Binding BoosterStationPower3MsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BoosterStationPower3MsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Width="375" Height="45" BorderBrush="#FF63829B" BorderThickness="1"
Background="#80022038">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center"
FontSize="16" Foreground="White" Text="设备4电源"
Margin="30,0,0,0" FontFamily="{StaticResource SourceHanSansCNNormal}"/>
<Image Source="{Binding BSSMS.BoosterStation_Device4}" Height="45"
Stretch="Fill" HorizontalAlignment="Right"
VerticalAlignment="Center" Margin="135,0,0,0"/>
</StackPanel>
</Border>
<Button Grid.Column="1" Name="BoosterStationPower4Picker" HorizontalAlignment="Center" VerticalAlignment="Center"
Width="85" Height="42" Background="#80052945"
BorderThickness="1" BorderBrush="#FF10CAFF"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower4OpenBtnIsEnabled}">
<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="BoosterStationPower4Picker" Path="Name"/>
<Binding Source="{StaticResource BoolTrue}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<Button Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center"
Width="85" Height="42" Background="#80771111"
BorderThickness="1" BorderBrush="#FFFF6A6A"
Command="{Binding Switch}" IsEnabled="{Binding BoosterStationPower4CloseBtnIsEnabled}">
<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="BoosterStationPower4Picker" Path="Name"/>
<Binding Source="{StaticResource BoolFalse}"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
<TextBlock Grid.Column="2" Name="BoosterStationPower4Msg" Text="{Binding BoosterStationPower4Msg}"
FontSize="12" Foreground="{Binding BoosterStationPower4MsgForeground}" HorizontalAlignment="Left"
Visibility="{Binding BoosterStationPower4MsgVisibility}" Margin="-80,5,0,0"
VerticalAlignment="Bottom" FontFamily="{StaticResource SourceHanSansCNLight}"/>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>