123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWMainUIControl"
- 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="800" d:DesignWidth="800">
- <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="DIWProcessValve">
- <MenuItem Header="Open" Click="OpenDIWProcessValve_Click"/>
- <MenuItem Header="Close" Click="CloseDIWProcessValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="DIWDegasValve">
- <MenuItem Header="Open" Click="OpenDIWDegasValve_Click"/>
- <MenuItem Header="Close" Click="CloseDIWDegasValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="DegasAdjustValve">
- <MenuItem Header="Open" Click="OpenDegasAdjustValve_Click"/>
- <MenuItem Header="Close" Click="CloseDegasAdjustValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="VPW1VACValve">
- <MenuItem Header="Open" Click="OpenVPW1VACValve_Click"/>
- <MenuItem Header="Close" Click="CloseVPW1VACValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="VPW2VACValve">
- <MenuItem Header="Open" Click="OpenVPW2VACValve_Click"/>
- <MenuItem Header="Close" Click="CloseVPW2VACValve_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=DIWProcessValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource DIWProcessValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="DIW Process" />
- </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=DIWDegasValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource DIWDegasValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="DIW Degas" />
- </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=DegasAdjustValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource DegasAdjustValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Degas Adjust" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="100" Canvas.Left="474" Canvas.Top="102" >
- <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=VPW1VACValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource VPW1VACValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="VPW 1 VAC" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="100" Canvas.Left="624" Canvas.Top="108" >
- <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=VPW2VACValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource VPW2VACValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="VPW 2 VAC" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="120" Canvas.Left="330" Canvas.Top="24" >
- <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="Total Flow" 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=TotalFlow}" 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="L/min" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </Grid>
- <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="BoosterPump" RotateTransformValue="0" IsOpenPump="{Binding IsBoosterPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="146" Canvas.Top="194" />
- <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="DegasPump" RotateTransformValue="0" IsOpenPump="{Binding IsDegasPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="290" Canvas.Top="195" />
- <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="VacuumPump" RotateTransformValue="0" IsOpenPump="{Binding IsVacuumPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="432" Canvas.Top="199" />
- <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Booster Pump" Canvas.Left="128" Canvas.Top="266" />
- <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Degas Pump" Canvas.Left="273" Canvas.Top="268" />
- <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Vacuum Pump" Canvas.Left="423" Canvas.Top="270" />
- </Canvas>
- </UserControl>
|