add translation table from FSM LogicalState to Modbus Register Value
This commit is contained in:
43
InputBox.xaml
Normal file
43
InputBox.xaml
Normal file
@@ -0,0 +1,43 @@
|
||||
<Window x:Class="FAtoPA.Net.InputBox"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:FAtoPA.Net"
|
||||
mc:Ignorable="d"
|
||||
Title="FSM To Modbus Register" Height="200" Width="250">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="AUTO"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0" Content="Logical State" VerticalContentAlignment="Center"/>
|
||||
<Border Grid.Column="1" BorderBrush="Black" BorderThickness="1" Margin="5">
|
||||
<TextBlock x:Name="txtLogicalState" />
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="AUTO"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0" Content="Modbus Register" VerticalContentAlignment="Center"/>
|
||||
<ComboBox Grid.Column="1" x:Name="cbModbusRegister" Margin="5" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Grid.Column="0" Content="Cancel" Margin="5" Click="Cancel_Click"/>
|
||||
<Button Grid.Column="1" Content="OK" Margin="5" Click="OK_Click"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user