|
@@ -0,0 +1,182 @@
|
|
|
+<UserControl x:Class="PunkHPX8_Themes.UserControls.VPWCellUIControl"
|
|
|
+ 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:userControls="clr-namespace:PunkHPX8_Themes.UserControls"
|
|
|
+ xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls"
|
|
|
+ xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"
|
|
|
+ xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
|
|
|
+ mc:Ignorable="d" Name="self"
|
|
|
+ d:DesignHeight="600" d:DesignWidth="600">
|
|
|
+ <UserControl.Resources>
|
|
|
+ <converters:BoolToVisibility2 x:Key="boolToVisibility2"></converters:BoolToVisibility2>
|
|
|
+ <converters:BoolToVisibility x:Key="boolToVisibility"></converters:BoolToVisibility>
|
|
|
+ <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
|
|
|
+ <Style x:Key="DisableContextMenuStyle" TargetType="userControls:Pump1">
|
|
|
+ <Setter Property="IsEnabled" Value="False"/>
|
|
|
+ </Style>
|
|
|
+ <ContextMenu x:Key="DripValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenDripValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseDripValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ <ContextMenu x:Key="SmallValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenSmallValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseSmallValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ <ContextMenu x:Key="LargeValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenLargeValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseLargeValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ <ContextMenu x:Key="VentValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenVentValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseVentValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ <ContextMenu x:Key="DrainValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenDrainValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseDrainValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ <ContextMenu x:Key="CellVacuumValve">
|
|
|
+ <MenuItem Header="Open" Click="OpenCellVacuumValve_Click"/>
|
|
|
+ <MenuItem Header="Close" Click="CloseCellVacuumValve_Click"/>
|
|
|
+ </ContextMenu>
|
|
|
+ </UserControl.Resources>
|
|
|
+ <Canvas>
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="50" Canvas.Top="98" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=DripValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource DripValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Drip" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="182" Canvas.Top="100" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=SmallValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource SmallValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Small" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="321" Canvas.Top="100" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=LargeValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource LargeValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Large" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="38" Canvas.Top="203" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=VentValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource VentValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Vent Vlave" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="173" Canvas.Top="196" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=DrainValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource DrainValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Drain Valve" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="100" Canvas.Left="309" Canvas.Top="193" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
|
|
|
+ Status="{Binding ElementName=self,Path=VacuumValve}"
|
|
|
+ IsCanEdit="True"
|
|
|
+ ContextMenu="{StaticResource CellVacuumValve}"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Vacuum Valve" />
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="120" Canvas.Left="73" Canvas.Top="26" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="60"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="60"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
|
|
|
+ <Label Content="DIWLoopDO" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
|
|
|
+ </Grid>
|
|
|
+ <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
+ <TextBlock Text="{Binding ElementName=self,Path=DIWLoopDo}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
+ </Border>
|
|
|
+ <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="ppm" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Height="50" Width="120" Canvas.Left="257" Canvas.Top="29" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="20"></RowDefinition>
|
|
|
+ <RowDefinition Height="30"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="60"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="60"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
|
|
|
+ <Label Content="Cell Vacuum" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
|
|
|
+ </Grid>
|
|
|
+ <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
|
+ <TextBlock Text="{Binding ElementName=self,Path=CellVacuum}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
+ </Border>
|
|
|
+ <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="Toor" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Canvas>
|
|
|
+</UserControl>
|