| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <UserControl x:Class="PunkHPX8_Themes.UserControls.DMReservoirUIControl"
- 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:ctrls="clr-namespace:PunkHPX8_Themes.UserControls"
- xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"
- xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
- mc:Ignorable="d" Name="self"
- d:DesignHeight="700" d:DesignWidth="1000">
- <UserControl.Resources>
- <converters:BoolToVisibility2 x:Key="boolToVisibility2"></converters:BoolToVisibility2>
- <converters:BoolToVisibility x:Key="boolToVisibility"></converters:BoolToVisibility>
- <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
- <converters:BoolToRedGreenColor x:Key="boolToRedGreenColor"/>
- <converters:BoolToRedColor x:Key="boolToRedColor"/>
- <converters:MutiBoolToBool x:Key="mutiBoolToBool"/>
- <ContextMenu x:Key="ANIsolationValve">
- <MenuItem Header="Open" Click="OpenANIsolationValve_Click"/>
- <MenuItem Header="Close" Click="CloseANIsolationValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="CAIsolationValve">
- <MenuItem Header="Open" Click="OpenCAIsolationValve_Click"/>
- <MenuItem Header="Close" Click="CloseCAIsolationValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="ReturnFlowValve">
- <MenuItem Header="Open" Click="OpenReturnFlowValve_Click"/>
- <MenuItem Header="Close" Click="CloseReturnFlowValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="DegasValve">
- <MenuItem Header="Open" Click="OpenDegasValve_Click"/>
- <MenuItem Header="Close" Click="CloseDegasValve_Click"/>
- </ContextMenu>
- <ContextMenu x:Key="SampleValve">
- <MenuItem Header="Open" Click="OpenSampleValve_Click"/>
- <MenuItem Header="Close" Click="CloseSampleValve_Click"/>
- </ContextMenu>
- </UserControl.Resources>
- <Canvas>
- <userControls:ReservoirPump IsEnabled="True" ModuleName="{Binding ModuleName,ElementName=self}" PumpType="VacuumPump" RotateTransformValue="0" IsOpenPump="{Binding IsANPumpOpen,Mode=TwoWay,ElementName=self}" Height="60" Width="60" Tag="26" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="96" Canvas.Top="170" RenderTransformOrigin="0.25,0.517" >
- <local:ReservoirPump.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="-89.495"/>
- <TranslateTransform/>
- </TransformGroup>
- </local:ReservoirPump.RenderTransform>
- </userControls:ReservoirPump>
- <userControls:ReservoirPump IsEnabled="True" ModuleName="{Binding ModuleName,ElementName=self}" PumpType="BoosterPump" RotateTransformValue="0" IsOpenPump="{Binding IsCAPumpOpen,Mode=TwoWay,ElementName=self}" Height="60" Width="60" Tag="26" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="400" Canvas.Top="550" />
- <Grid Height="50" Width="100" Canvas.Left="206" Canvas.Top="83" HorizontalAlignment="Center" VerticalAlignment="Top" >
- <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=ANIsolationValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource ANIsolationValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="AN Isolation" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="100" Canvas.Left="500" Canvas.Top="60" HorizontalAlignment="Center" VerticalAlignment="Top" >
- <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=CAIsolationValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource CAIsolationValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="CA Isolation" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="100" Canvas.Left="600" Canvas.Top="460" HorizontalAlignment="Center" VerticalAlignment="Top" >
- <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=DegasValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource DegasValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Degas Valve" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="100" Canvas.Left="500" Canvas.Top="600" HorizontalAlignment="Center" VerticalAlignment="Top" >
- <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=SampleValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource SampleValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Sample Valve" />
- </Grid>
- </Grid>
- <Grid Height="50" Width="120" Canvas.Left="300" Canvas.Top="260" HorizontalAlignment="Center" VerticalAlignment="Top" >
- <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=ReturnFlowValve}"
- IsCanEdit="True"
- ContextMenu="{StaticResource ReturnFlowValve}"/>
- </Grid>
- <Grid Grid.Row="1">
- <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="ReturnFlow Valve" />
- </Grid>
- </Grid>
- <Canvas Width="150" Height="100" Canvas.Left="778" Canvas.Top="476" HorizontalAlignment="Center" VerticalAlignment="Top">
- <userControls:TempControl TempValue="{Binding ReservoirTemperature}" Status="{Binding TCStatus}"
- DisableStatus="{Binding TCEnableStatus}">
- </userControls:TempControl>
- </Canvas>
- <Grid Canvas.Left="205" Canvas.Top="470">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="140"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="25"/>
- <RowDefinition Height="25"/>
- <RowDefinition Height="25"/>
- <RowDefinition Height="25"/>
- <RowDefinition Height="25"/>
- <RowDefinition Height="25"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <Label Content="CA Level" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Grid>
- <Border Grid.Row="1" Grid.Column="0" Margin="5,0,15,5" Background="Black" Width="100">
- <TextBlock Text="{Binding ElementName=self,Path=CALevel, StringFormat={}{0:F2} L}" Foreground="Lime" FontSize="12" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- </Border>
- <Grid Grid.Row="2" Grid.Column="0">
- <Label Content="CA LevelRaw" FontSize="12" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Grid>
- <Border Grid.Row="3" Grid.Column="0" Margin="5,0,15,5" Background="Black" Width="100">
- <TextBlock Text="{Binding ElementName=self,Path=CALevelRaw, StringFormat={}{0:F2} %}" Foreground="Lime" FontSize="12" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- </Border>
- <Grid Grid.Row="4" Grid.Column="0">
- <Label Content="High" FontSize="12" FontWeight="Bold" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,25,0"/>
- <Ellipse Margin="61,2,20,2" Width="16" Height="16" Stroke="Silver"
- Fill="{Binding ElementName=self,Path=IsCALevelHigh,Converter={StaticResource boolToRedGreenColor}}"/>
- </Grid>
- <Grid Grid.Row="5" Grid.Column="0">
- <Label Content="Low" FontSize="12" FontWeight="Bold" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,25,0"/>
- <Ellipse Margin="61,2,20,2" Width="16" Height="16" Fill="{Binding ElementName=self,Path=IsCALevelLow,Converter={StaticResource boolToRedGreenColor}}" Stroke="Gray"/>
- </Grid>
- </Grid>
- <ctrls:TextboxWithLabel Canvas.Top="368" Canvas.Left="274" LabelValue="AN Flow" TextBoxValue="{Binding ANFlow, StringFormat={}{0:F2} L/min}" TextBoxColor="Black" HorizontalAlignment="Center" VerticalAlignment="Top" />
- <ctrls:TextboxWithLabel Canvas.Top="268" Canvas.Left="474" LabelValue="CA Flow" TextBoxValue="{Binding ANFlow, StringFormat={}{0:F2} L/min}" TextBoxColor="Black" HorizontalAlignment="Center" VerticalAlignment="Top" />
- <Ellipse Canvas.Left="100" Canvas.Top="20" Width="16" Height="16" Fill="{Binding IsANLevelHigh, Converter={StaticResource boolToRedColor}}" Stroke="Silver"/>
- <Ellipse Canvas.Left="100" Canvas.Top="120" Width="16" Height="16" Fill="{Binding IsANLevelLow, Converter={StaticResource boolToRedColor}}" Stroke="Silver"/>
- </Canvas>
- </UserControl>
|