123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <UserControl x:Class="CyberX8_Themes.UserControls.TransporterDebugControl"
- 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:CyberX8_Themes.UserControls"
- xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
- mc:Ignorable="d" Name="self"
- d:DesignHeight="350" d:DesignWidth="900">
- <UserControl.Resources>
- <converters:BoolToColor x:Key="boolToColor"></converters:BoolToColor>
- <converters:BoolToBool x:Key="boolToBool"></converters:BoolToBool>
- </UserControl.Resources>
- <Grid>
- <GroupBox Header="{Binding ElementName=self,Path=ModuleTitle}" Grid.Row="1" Grid.Column="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="300"></ColumnDefinition>
- <ColumnDefinition Width="260"></ColumnDefinition>
- <ColumnDefinition Width="330"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="80"></RowDefinition>
- <RowDefinition Height="80"></RowDefinition>
- <RowDefinition/>
- <RowDefinition Height="80"></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Header="Lock Unlock" Grid.Row="0">
- <Grid>
- <Label Content="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Lock1On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="10,14,0,14"/>
- <Label Content="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="40,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Lock2On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="40,14,0,14"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Lock" Width="70" Height="30" HorizontalAlignment="Left" Click="Lock_Click" Margin="70,14,0,14"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Unlock" Width="70" Height="30" HorizontalAlignment="Left" Click="Unlock_Click" Margin="150,14,0,14"/>
- <Label Content="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="230,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Unlock1On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="230,14,0,14"/>
- <Label Content="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="260,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Unlock2On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="260,14,0,14"/>
- </Grid>
- </GroupBox>
- <GroupBox Header="Immobilize" Grid.Row="1">
- <Grid>
- <Label Content="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Retract1On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="10,14,0,14"/>
- <Label Content="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="40,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Retract2On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="40,14,0,14"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Retract" Width="70" Height="30" HorizontalAlignment="Left" Click="Retract_Click" Margin="70,14,0,14"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Extend" Width="70" Height="30" HorizontalAlignment="Left" Click="Extend_Click" Margin="150,14,0,14"/>
- <Label Content="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="230,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Extend1On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="230,14,0,14"/>
- <Label Content="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="260,0,0,0"></Label>
- <Ellipse Width="16" Height="16" Fill="{Binding ElementName=self,Path=Extend2On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" Margin="260,14,0,14"/>
- </Grid>
- </GroupBox>
- </Grid>
- <Grid Grid.Column="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition Height="120"></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Content="1" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="160,4,0,0"></Label>
- <Label Content="2" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="200,4,0,0"></Label>
- <Label Content="Ready To Lock" Grid.Row="1" VerticalAlignment="Center"></Label>
- <Ellipse Grid.Row="1" Width="16" Height="16" Fill="{Binding ElementName=self,Path=ReadyToLock1On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="160,0,0,0"/>
- <Ellipse Grid.Row="1" Width="16" Height="16" Fill="{Binding ElementName=self,Path=ReadyToLock2On,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="200,0,0,0"/>
- <Label Content="WS Present" Grid.Row="2" VerticalAlignment="Center"></Label>
- <Ellipse Grid.Row="2" Width="16" Height="16" Fill="{Binding ElementName=self,Path=WHPresent1,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="160,0,0,0"/>
- <Ellipse Grid.Row="2" Width="16" Height="16" Fill="{Binding ElementName=self,Path=WHPresent2,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="200,0,0,0"/>
- <Label Content="Gantry" Grid.Row="3" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="146,0,0,0"></Label>
- <Label Content="Elevator" Grid.Row="3" Grid.RowSpan="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="190,0,0,0"></Label>
- <Label Content="Motor" Grid.Row="4" VerticalAlignment="Center"></Label>
- <Ellipse Grid.Row="4" Width="16" Height="16" Fill="{Binding ElementName=self,Path=GantryMotorOn,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="160,0,0,0"/>
- <Ellipse Grid.Row="4" Width="16" Height="16" Fill="{Binding ElementName=self,Path=ElevatorMotorOn,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="200,0,0,0"/>
- <Label Content="Homed" Grid.Row="5" VerticalAlignment="Center"></Label>
- <Ellipse Grid.Row="5" Width="16" Height="16" Fill="{Binding ElementName=self,Path=GantryHomed,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="160,0,0,0"/>
- <Ellipse Grid.Row="5" Width="16" Height="16" Fill="{Binding ElementName=self,Path=ElevatorHomed,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="200,0,0,0"/>
- <Label Content="Moving" Grid.Row="6" VerticalAlignment="Center"></Label>
- <Ellipse Grid.Row="6" Width="16" Height="16" Fill="{Binding ElementName=self,Path=GantryMoving,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="160,0,0,0"/>
- <Ellipse Grid.Row="6" Width="16" Height="16" Fill="{Binding ElementName=self,Path=ElevatorMoving,Converter={StaticResource boolToColor}}" Stroke="Silver" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="200,0,0,0"/>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Content="Barcode" VerticalContentAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0"></Label>
- <TextBlock Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="18" Width="140" Background="Black" Foreground="Lime"
- Text="{Binding ElementName=self,Path=Barcode}" Margin="80,0,0,0"/>
- <Button Grid.Row="1" Style="{StaticResource SysBtnStyle}" Content="Read Barcode" Width="90" Height="30" HorizontalAlignment="Left"
- Click="ReadBarcode_Click" Margin="20,14,0,14"/>
- <Button Grid.Row="1" Style="{StaticResource SysBtnStyle}" Content="Tune Reader" Width="90" Height="30" HorizontalAlignment="Right"
- Click="TuneReader_Click" Margin="0,14,20,14"/>
- </Grid>
- </GroupBox>
- </Grid>
- </Grid>
- <Grid Grid.Column="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition Height="120"></RowDefinition>
- </Grid.RowDefinitions>
- <GroupBox>
- <Grid Grid.Row="0">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Content="From" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="105,0,0,0"/>
- <ComboBox Height="25" Width="165" ItemsSource="{Binding ElementName=self,Path=PositionList}" SelectedItem="{Binding ElementName=self,Path=FromSelectedItem,Mode=TwoWay}"
- Margin="142,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- <Button Grid.Row="0" Grid.RowSpan="2" Style="{StaticResource SysBtnStyle}" Content="Transfer" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="Transfer_Click" Margin="10,0,0,0"/>
- <Label Content="To" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="105,0,0,0"></Label>
- <ComboBox Height="25" Grid.Row="1" Width="165" ItemsSource="{Binding ElementName=self,Path=PositionList}" SelectedItem="{Binding ElementName=self,Path=ToSelectedItem,Mode=TwoWay}"
- Margin="142,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- <Button Grid.Row="2" Style="{StaticResource SysBtnStyle}" Content="Pick Up From" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="PickUpFrom_Click" Margin="10,0,0,0"/>
- <Button Grid.Row="2" Style="{StaticResource SysBtnStyle}" Content="Put Down To" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="PutDownTo_Click" Margin="110,0,0,0"/>
- <Button Grid.Row="2" Style="{StaticResource SysBtnStyle}" Content="Move To" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="MoveTo_Click" Margin="220,0,0,0"/>
- <Button Grid.Row="3" Style="{StaticResource SysBtnStyle}" Content="Home" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Margin="10,0,0,0" IsEnabled="True" Click="Home_Click"/>
- <Button Grid.Row="3" Style="{StaticResource SysBtnStyle}" Content="Elevator Up" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="ElevatorUp_Click" Margin="110,0,0,0"/>
- <Button Grid.Row="3" Style="{StaticResource SysBtnStyle}" Content="Park" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center"
- Click="Park_Click" Margin="220,0,0,0"/>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="1">
- <Grid>
- <Button Style="{StaticResource SysBtnStyle}" Content="Switch On" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top"
- Margin="15,22,0,0" Click="SwitchOn_Click"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Switch Off" Width="90" Height="30" HorizontalAlignment="Center" VerticalAlignment="Top"
- Margin="0,22,0,0" Click="SwitchOff_Click"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Abort" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top"
- Margin="218,22,0,0" Click="Abort_Click"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Clear Error" Width="90" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top"
- Margin="15,67,0,0" Click="ClearError_Click"/>
- </Grid>
- </GroupBox>
- </Grid>
- </Grid>
- </Grid>
- </GroupBox>
- </Grid>
- </UserControl>
|