|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
|
xmlns:local="clr-namespace:SocketExample"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.031" Height="450" Width="800">
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.041" Height="450" Width="800">
|
|
|
|
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
|
<Style x:Key="SocketButton" TargetType="Button" BasedOn="{StaticResource BaseButtonStyle}">
|
|
|
|
@ -50,11 +50,12 @@
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
|
|
|
|
<Border>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10" Height="30">
|
|
|
|
|
<TextBlock Text="监控终端生成数量:" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
|
|
|
@ -62,126 +63,136 @@
|
|
|
|
|
<Button Content="生成" Click="GenerateButton_Click" Width="50" Margin="10 0 0 0" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<Button Content="清空" Click="ClearButton_Click" Width="50" Margin="10 0 0 0" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
|
|
|
|
|
|
|
|
|
<ItemsControl x:Name="PanelContainer">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel Orientation="Horizontal"></WrapPanel>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
|
|
|
|
|
|
|
|
|
<ItemsControl x:Name="PanelContainer">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel Orientation="Horizontal"></WrapPanel>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border BorderThickness="1" BorderBrush="Black" Margin="1">
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="5 5 5 5" Width="360" >
|
|
|
|
|
<Border Width="Auto" Background="LightSkyBlue" >
|
|
|
|
|
<TextBlock Width="Auto" Text="{Binding Text}"></TextBlock>
|
|
|
|
|
<TextBox Width="Auto" Foreground="Black" Background="LightSkyBlue" Text="{Binding Text}" FontSize="14"></TextBox>
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="360">
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Label Content="IP地址" Height="30" Margin="10 8 0 0"/>
|
|
|
|
|
<TextBox TextWrapping="Wrap" x:Name="IPtextbox" Text="{Binding IPtext}" Width="100" Height="20" Margin="5 8 0 0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Label Content="端口号" Height="30" Margin="10 8 0 0"/>
|
|
|
|
|
<TextBox TextWrapping="Wrap" Text="{Binding Porttext}" x:Name="Porttextbox" Width="45" Height="20" Margin="5 8 0 0"/>
|
|
|
|
|
<Button Content="读取" Height="20" Width="40" Margin="10 8 0 0" Command="{Binding _readcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="360">
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Label Content="IP地址" Height="30" Margin="10 8 0 0"/>
|
|
|
|
|
<TextBox TextWrapping="Wrap" x:Name="IPtextbox" Text="{Binding IPtext}" Width="100" Height="20" Margin="5 8 0 0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Label Content="端口号" Height="30" Margin="10 8 0 0"/>
|
|
|
|
|
<TextBox TextWrapping="Wrap" Text="{Binding Porttext}" x:Name="Porttextbox" Width="45" Height="20" Margin="5 8 0 0"/>
|
|
|
|
|
<!-- <Button Content="读取" Height="20" Width="40" Margin="10 8 0 0" Command="{Binding _readcomn}" Style="{StaticResource SocketButton}"/>-->
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Ellipse Width="20" Height="20" Fill="{Binding StateColour}" Margin="8 8 0 0"/>
|
|
|
|
|
<Label Height="30" Content="{Binding LinkState}" Margin="2 8 0 0"></Label>
|
|
|
|
|
<Button Content="连接" Height="30" Margin="10 8 0 0" Command="{Binding _linkcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<Button Content="清空" Height="30" Margin="10 8 0 0" Command="{Binding _clearcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<Button Content="断开" Height="30" Margin="10 8 10 0" Command="{Binding _disconnectcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Ellipse Width="20" Height="20" Fill="{Binding StateColour}" Margin="20 8 0 0"/>
|
|
|
|
|
<Label Height="30" Content="{Binding LinkState}" Margin="2 8 0 0"></Label>
|
|
|
|
|
<Button Content="连接" Height="30" Margin="10 8 0 0" Command="{Binding _linkcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<Button Content="清空" Height="30" Margin="10 8 0 0" Command="{Binding _clearcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
<Button Content="断开" Height="30" Margin="10 8 10 0" Command="{Binding _disconnectcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="370" Margin="0,5,0,5" Height="100">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Width="370" Margin="0,1,0,5" Height="100">
|
|
|
|
|
<Border Height="Auto" Width="200" BorderBrush="Black" BorderThickness="1" Margin="5,5,10,0" >
|
|
|
|
|
<ScrollViewer x:Name="TextScrollViewer" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
|
|
|
|
|
<TextBox x:Name="InfoTextBlock_Client" TextWrapping="Wrap" BorderThickness="0" IsReadOnly="True" Text="{Binding Infotext}" Height="Auto" Width="Auto">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="TextChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="TextChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding TextChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=TextScrollViewer}"
|
|
|
|
|
/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,5,0,0" Width="130">
|
|
|
|
|
<TextBlock Text="请输入需要发送的内容:"></TextBlock>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBox TextWrapping="Wrap" x:Name="MessageTextBox_Client" Text="{Binding MessageText}" Height="50" Width="110" Margin="0,0,0,5"/>
|
|
|
|
|
<ComboBox x:Name="TextComboBox" Width="20" Height="20" ItemsSource="{Binding SendTextComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding SendTextChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=TextComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<TextBox TextWrapping="Wrap" x:Name="MessageTextBox_Client" Text="{Binding MessageText}" Height="50" Width="130" Margin="0,0,0,5"/>
|
|
|
|
|
<Button Content="发送" Width="40" Command="{Binding _sendcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Button Content="发送" Width="50" HorizontalAlignment="Center" Command="{Binding _sendcomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Visible" Margin="0.5 0.1 0.5 0.1" Height="150">
|
|
|
|
|
<ItemsControl ItemsSource="{Binding TagItems}">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel Orientation="Horizontal"></WrapPanel>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" Margin="0.5 0 0.5 0">
|
|
|
|
|
<Grid Margin="5">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="标签:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="HEX:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCASC}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="RSSI:"/>
|
|
|
|
|
<TextBlock Text="{Binding RSSIinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Visible" Margin="0.5 0.1 0.5 0.1" Height="150">
|
|
|
|
|
<ItemsControl ItemsSource="{Binding TagItems}">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<WrapPanel Orientation="Horizontal"></WrapPanel>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden" Margin="0.5 0 0.5 0">
|
|
|
|
|
<Grid Margin="5">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="标签:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="Count:"/>
|
|
|
|
|
<TextBlock Text="{Binding Countinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="Time:"/>
|
|
|
|
|
<TextBlock Text="{Binding Timeinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="HEX:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCASC}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="RSSI:"/>
|
|
|
|
|
<TextBlock Text="{Binding RSSIinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="Count:"/>
|
|
|
|
|
<TextBlock Text="{Binding Countinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="Time:"/>
|
|
|
|
|
<TextBlock Text="{Binding Timeinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Border>
|
|
|
|
|
<!-- 功率部分,已备份,注释后不再生成该部分
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!--触发动作部分-->
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="1 2 1 2">
|
|
|
|
|
<Label Content="触发动作:" FontWeight="Bold" FontSize="13"/>
|
|
|
|
|
<TextBox Text="{Binding ActionType}" Width="70" TextAlignment="Center" FontSize="13"/>
|
|
|
|
|
<ComboBox x:Name="TextComboBox" Width="20" Height="20" ItemsSource="{Binding SendTextComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding SendTextChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=TextComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<Label Content="时间段:" FontWeight="Bold" FontSize="13"/>
|
|
|
|
|
<TextBox Text="{Binding TimeOut}" Width="50" TextAlignment="Center" FontSize="13"/>
|
|
|
|
|
<Button Content="发送" Width="50" Margin="15 2 0 2" Command="{Binding _sendactioncomn}" Style="{StaticResource SocketButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!-- 功率部分,已备份,注释后不再生成该部分
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Grid Margin="0 0 0 0">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
@ -306,151 +317,147 @@
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
-->
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Grid Margin="0 0 0 2">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.Row="0" HorizontalAlignment="Center" Content="GPIO状态" FontSize="14" FontWeight="Bold" FontStyle="Oblique"></Label>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO1" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO1}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO1ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
-->
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Grid Margin="0 0 0 2">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.Row="0" HorizontalAlignment="Center" Content="GPIO状态" FontSize="14" FontWeight="Bold" FontStyle="Oblique"></Label>
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO1" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO1}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO1ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding GPOSelectionChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=GPO1ComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO2" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO2}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO2ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO2" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO2}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO2ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding GPOSelectionChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=GPO2ComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO3" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO3}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO3ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO3" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO3}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO3ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding GPOSelectionChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=GPO3ComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO4" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO4}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO4ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPO4" HorizontalAlignment="Left"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO4}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO4ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|
Command="{Binding GPOSelectionChangedCommand}"
|
|
|
|
|
CommandParameter="{Binding ElementName=GPO4ComboBox}"/>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</i:EventTrigger>
|
|
|
|
|
</i:Interaction.Triggers>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="1" Margin="0 0 0 5">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI1" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI1}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI2" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI2}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI3" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI3}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI4" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI4}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Row="1" Margin="0 0 0 5">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI1" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI1}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI2" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI2}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI3" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI3}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
|
|
|
|
<Label Content="GPI4" HorizontalAlignment="Left" Margin="0 0 6 0"/>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPI4}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Grid Margin="0 0 0 2">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.Row="0" Content="版本信息" HorizontalAlignment="Center" FontSize="14" FontWeight="Bold" FontStyle="Oblique"/>
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Label Grid.Column="0" Content="模块型号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="1" Content="{Binding moduleInfo}"></Label>
|
|
|
|
|
<Label Grid.Column="2" Content="主板固件号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="3" Content="{Binding motherboardFirmware}"></Label>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Grid Margin="0 0 0 2">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Label Grid.Row="0" Content="版本信息" HorizontalAlignment="Center" FontSize="14" FontWeight="Bold" FontStyle="Oblique"/>
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Label Grid.Column="0" Content="模块型号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="1" Content="{Binding moduleInfo}"></Label>
|
|
|
|
|
<Label Grid.Column="2" Content="主板固件号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="3" Content="{Binding motherboardFirmware}"></Label>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Window>
|
|
|
|
|