|
@@ -45,40 +45,21 @@
|
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
- <!--<StackPanel Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
|
- HorizontalAlignment="Center">
|
|
|
|
|
- <Border Background="White"
|
|
|
|
|
- Width="60" Height="60">
|
|
|
|
|
- <TextBlock Text="Output#1" VerticalAlignment="Center"
|
|
|
|
|
- HorizontalAlignment="Center"/>
|
|
|
|
|
- </Border>
|
|
|
|
|
- <Border Background="Gray"
|
|
|
|
|
- Width="60" Height="50">
|
|
|
|
|
- <TextBlock Text="Output#2" VerticalAlignment="Center"
|
|
|
|
|
- HorizontalAlignment="Center"/>
|
|
|
|
|
- </Border>
|
|
|
|
|
- <Border Background="Black"
|
|
|
|
|
- Width="60" Height="40">
|
|
|
|
|
- <TextBlock Text="Output#3" VerticalAlignment="Center" Foreground="White"
|
|
|
|
|
- HorizontalAlignment="Center"/>
|
|
|
|
|
- </Border>
|
|
|
|
|
- </StackPanel>-->
|
|
|
|
|
|
|
+ <Border Grid.Column="0" Margin="23,22,23,17" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
|
|
|
|
|
- <Border Grid.Column="0" Margin="37,69,37,47" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
|
|
-
|
|
|
|
|
<!--InPut-->
|
|
<!--InPut-->
|
|
|
<StackPanel Orientation="Vertical"
|
|
<StackPanel Orientation="Vertical"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Grid.Column="0">
|
|
Grid.Column="0">
|
|
|
|
|
|
|
|
- <materialDesign:Badged
|
|
|
|
|
- Badge="Converter IO"
|
|
|
|
|
- BadgeColorZoneMode="Dark"
|
|
|
|
|
- BadgePlacementMode="Top">
|
|
|
|
|
|
|
+ <materialDesign:Badged
|
|
|
|
|
+ Badge="Detect Pattern"
|
|
|
|
|
+ BadgeColorZoneMode="Dark"
|
|
|
|
|
+ BadgePlacementMode="Top">
|
|
|
<Button IsEnabled="False" Background="{x:Null}">
|
|
<Button IsEnabled="False" Background="{x:Null}">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock><Run Text="InputList"/></TextBlock>
|
|
|
|
|
|
|
+ <TextBlock><Run Text="Pattern List"/></TextBlock>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
</materialDesign:Badged>
|
|
</materialDesign:Badged>
|
|
@@ -86,17 +67,20 @@
|
|
|
<ToggleButton Margin="15"
|
|
<ToggleButton Margin="15"
|
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
- Width="40">
|
|
|
|
|
|
|
+ Width="60"
|
|
|
|
|
+ Height="60"
|
|
|
|
|
+ Command="{Binding ResultPattern}"
|
|
|
|
|
+ CommandParameter="1"
|
|
|
|
|
+ IsChecked="{Binding ResultPatternOne}">
|
|
|
<ToggleButton.Content>
|
|
<ToggleButton.Content>
|
|
|
- <materialDesign:PackIcon Height="Auto"
|
|
|
|
|
- Kind="LedOn" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30" Kind="CloseBoxOutline"/>
|
|
|
</ToggleButton.Content>
|
|
</ToggleButton.Content>
|
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="CloseBoxOutline" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30" Kind="LedOn"/>
|
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
|
- <TextBlock Text="Input1"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Text="Set Out#1" Margin="0,-15,0,0"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Foreground="Orange"/>
|
|
Foreground="Orange"/>
|
|
@@ -104,17 +88,22 @@
|
|
|
<ToggleButton Margin="15"
|
|
<ToggleButton Margin="15"
|
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
- Width="40">
|
|
|
|
|
|
|
+ Width="60"
|
|
|
|
|
+ Height="60"
|
|
|
|
|
+ Command="{Binding ResultPattern}"
|
|
|
|
|
+ CommandParameter="2"
|
|
|
|
|
+ IsChecked="{Binding ResultPatternTwo}">
|
|
|
<ToggleButton.Content>
|
|
<ToggleButton.Content>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="LedOn" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
|
|
+
|
|
|
</ToggleButton.Content>
|
|
</ToggleButton.Content>
|
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="CloseBoxOutline" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="LedOn" />
|
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
|
- <TextBlock Text="Input2"
|
|
|
|
|
|
|
+ <TextBlock Text="Set Out#2" Margin="0,-15,0,0"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Foreground="Orange"/>
|
|
Foreground="Orange"/>
|
|
@@ -122,17 +111,21 @@
|
|
|
<ToggleButton Margin="15"
|
|
<ToggleButton Margin="15"
|
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
- Width="40">
|
|
|
|
|
|
|
+ Width="60"
|
|
|
|
|
+ Height="60"
|
|
|
|
|
+ Command="{Binding ResultPattern}"
|
|
|
|
|
+ CommandParameter="3"
|
|
|
|
|
+ IsChecked="{Binding ResultPatternThree}">
|
|
|
<ToggleButton.Content>
|
|
<ToggleButton.Content>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="LedOn" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
</ToggleButton.Content>
|
|
</ToggleButton.Content>
|
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="CloseBoxOutline" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="LedOn" />
|
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
|
- <TextBlock Text="Input3"
|
|
|
|
|
|
|
+ <TextBlock Text="Set Out#3" Margin="0,-15,0,0"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Foreground="Orange"/>
|
|
Foreground="Orange"/>
|
|
@@ -140,17 +133,21 @@
|
|
|
<ToggleButton Margin="15"
|
|
<ToggleButton Margin="15"
|
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
- Width="40">
|
|
|
|
|
|
|
+ Width="60"
|
|
|
|
|
+ Height="60"
|
|
|
|
|
+ Command="{Binding ResultPattern}"
|
|
|
|
|
+ CommandParameter="4"
|
|
|
|
|
+ IsChecked="{Binding ResultPatternFour}">
|
|
|
<ToggleButton.Content>
|
|
<ToggleButton.Content>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="LedOn" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
</ToggleButton.Content>
|
|
</ToggleButton.Content>
|
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="CloseBoxOutline" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="LedOn" />
|
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
|
- <TextBlock Text="Input4"
|
|
|
|
|
|
|
+ <TextBlock Text="Set Out#4" Margin="0,-15,0,0"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Foreground="Orange"/>
|
|
Foreground="Orange"/>
|
|
@@ -158,59 +155,65 @@
|
|
|
<ToggleButton Margin="15"
|
|
<ToggleButton Margin="15"
|
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
- Width="40">
|
|
|
|
|
|
|
+ Width="60"
|
|
|
|
|
+ Height="60"
|
|
|
|
|
+ Command="{Binding ResultPattern}"
|
|
|
|
|
+ CommandParameter="5"
|
|
|
|
|
+ IsChecked="{Binding ResultPatternFive}">
|
|
|
<ToggleButton.Content>
|
|
<ToggleButton.Content>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="LedOn" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
</ToggleButton.Content>
|
|
</ToggleButton.Content>
|
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
<materialDesign:ToggleButtonAssist.OnContent>
|
|
|
- <materialDesign:PackIcon
|
|
|
|
|
- Kind="CloseBoxOutline" />
|
|
|
|
|
|
|
+ <materialDesign:PackIcon Height="30" Width="30"
|
|
|
|
|
+ Kind="LedOn" />
|
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
</materialDesign:ToggleButtonAssist.OnContent>
|
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
|
- <TextBlock Text="Input5"
|
|
|
|
|
|
|
+ <TextBlock Text="Set Out#5" Margin="0,-15,0,0"
|
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Foreground="Orange"/>
|
|
Foreground="Orange"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<!--OutPut-->
|
|
<!--OutPut-->
|
|
|
- <Border Grid.Column="1" Margin="30,180" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
|
|
|
|
+ <Border Grid.Column="1" Margin="30,79" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
<StackPanel VerticalAlignment="Center"
|
|
<StackPanel VerticalAlignment="Center"
|
|
|
HorizontalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
|
Grid.Column="1">
|
|
Grid.Column="1">
|
|
|
<materialDesign:Badged Margin="5"
|
|
<materialDesign:Badged Margin="5"
|
|
|
Badge="Detect Area#1"
|
|
Badge="Detect Area#1"
|
|
|
BadgeColorZoneMode="Dark">
|
|
BadgeColorZoneMode="Dark">
|
|
|
- <Button Width="80"
|
|
|
|
|
- Height="60"
|
|
|
|
|
|
|
+ <Button Width="80"
|
|
|
|
|
+ Height="200"
|
|
|
Background="{Binding OpReaderOutFirst}">
|
|
Background="{Binding OpReaderOutFirst}">
|
|
|
- <StackPanel>
|
|
|
|
|
- <TextBlock><Run Text="Zone#1"/></TextBlock>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button>
|
|
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock><Run Text="Slow"/></TextBlock>
|
|
|
|
|
+ <TextBlock><Run Text="Stop"/></TextBlock>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
</materialDesign:Badged>
|
|
</materialDesign:Badged>
|
|
|
|
|
|
|
|
<materialDesign:Badged Margin="5"
|
|
<materialDesign:Badged Margin="5"
|
|
|
Badge="Detect Area#2"
|
|
Badge="Detect Area#2"
|
|
|
BadgeColorZoneMode="Dark">
|
|
BadgeColorZoneMode="Dark">
|
|
|
<Button Width="80"
|
|
<Button Width="80"
|
|
|
- Height="50"
|
|
|
|
|
|
|
+ Height="100"
|
|
|
Background="{Binding OpReaderOutSecond}">
|
|
Background="{Binding OpReaderOutSecond}">
|
|
|
- <StackPanel>
|
|
|
|
|
- <TextBlock><Run Text="Zone#2"/></TextBlock>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Button>
|
|
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock HorizontalAlignment="Center"><Run Text="Safety"/></TextBlock>
|
|
|
|
|
+ <TextBlock HorizontalAlignment="Center"><Run Text="Stop"/></TextBlock>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
</materialDesign:Badged>
|
|
</materialDesign:Badged>
|
|
|
|
|
|
|
|
<materialDesign:Badged Margin="5"
|
|
<materialDesign:Badged Margin="5"
|
|
|
Badge="Detect Area#3"
|
|
Badge="Detect Area#3"
|
|
|
BadgeColorZoneMode="Dark">
|
|
BadgeColorZoneMode="Dark">
|
|
|
<Button Width="80"
|
|
<Button Width="80"
|
|
|
- Height="40"
|
|
|
|
|
|
|
+ Height="60"
|
|
|
Background="{Binding OpReaderOutThird}">
|
|
Background="{Binding OpReaderOutThird}">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock><Run Text="Zone#3"/></TextBlock>
|
|
|
|
|
|
|
+ <TextBlock><Run Text="Stop"/></TextBlock>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
</materialDesign:Badged>
|
|
</materialDesign:Badged>
|
|
@@ -221,13 +224,13 @@
|
|
|
HorizontalAlignment="Center">
|
|
HorizontalAlignment="Center">
|
|
|
<Button >
|
|
<Button >
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock><Run Text="Input Bit Result"/></TextBlock>
|
|
|
|
|
|
|
+ <TextBlock><Run Text="Pattern Result"/></TextBlock>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<Button Background="{x:Null}">
|
|
<Button Background="{x:Null}">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock><Run Text="{Binding InputBitResult, FallbackValue=0}"/></TextBlock>
|
|
|
|
|
|
|
+ <TextBlock><Run Text="{Binding PatternResult, FallbackValue=0}"/></TextBlock>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
@@ -238,7 +241,7 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<Button Margin="5,50,5,0" HorizontalAlignment="Stretch" Height="69"
|
|
<Button Margin="5,50,5,0" HorizontalAlignment="Stretch" Height="69"
|
|
|
BorderBrush="Gray" BorderThickness="2"
|
|
BorderBrush="Gray" BorderThickness="2"
|
|
|
- Command="{Binding SteeringSaveCommand}" CommandParameter="true">
|
|
|
|
|
|
|
+ Command="{Binding DetectPatternSave}" CommandParameter="true">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<materialDesign:PackIcon Kind="CalendarExport" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
<materialDesign:PackIcon Kind="CalendarExport" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
<TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
<TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|