1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <UserControl x:Class="CyberX8_Themes.UserControls.CalibrateControl"
- 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" x:Name="self"
- d:DesignHeight="150" d:DesignWidth="300">
- <UserControl.Resources>
- <Converters:IntToTargetNumber4 x:Key="intToTargetNumber4"/>
- </UserControl.Resources>
- <Grid Height="{Binding ElementName=self,Path=ReplenNum,Converter={StaticResource intToTargetNumber4}}" Width="300">
- <Grid.RowDefinitions>
- <RowDefinition Height="37"/>
- <RowDefinition Height="37"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.53*"/>
- <ColumnDefinition Width="0.35*"/>
- <ColumnDefinition Width="0.25*"/>
- </Grid.ColumnDefinitions>
-
- <Label Grid.Row="0" Grid.Column="0" Content="Calibrate Volume" FontWeight="Bold" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Center"></Label>
- <TextBox x:Name="TargetVolumeBox" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Replen1,Mode=TwoWay}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Height="26" Width="110" Margin="9,0,0,0"/>
- <Label Grid.Row="0" Grid.Column="2" Content="(mL)" FontWeight="Bold" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Center" Width="40" Margin="26,0,0,0"></Label>
- <Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Content="Measured Volume" FontWeight="Bold" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Center"></Label>
- <TextBox x:Name="MeasuredVolumeBox" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Text="{Binding Replen1,Mode=TwoWay}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Left" Height="26" Width="110" Margin="9,0,0,0"/>
- <Label Grid.Row="1" Grid.Column="2" Content="(mL)" FontWeight="Bold" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Center" Width="40" Margin="26,0,0,0"></Label>
- <StackPanel Grid.Row="2" Grid.ColumnSpan="3">
- <Grid Height="37.5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.53*"/>
- <ColumnDefinition Width="0.35*"/>
- <ColumnDefinition Width="0.25*"/>
- </Grid.ColumnDefinitions>
- <Label Content="Replen1 Pump Factor" FontWeight="Bold" FontSize="14" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- <Border Background="Black" Margin="20,6,5,6" Grid.Column="1">
- <TextBlock x:Name="PumpFactorBlock1" Text="{Binding ElementName=self,Path=ReplensPersistentCollection[0].ReplenPumpFactor,StringFormat=\{0:F3\}}" Foreground="Lime" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Button Grid.Column="2" FontSize="12" Content="Calibrate" Click="Calibrate1_Click" Style="{StaticResource SysBtnStyle}" Height="32" Width="58" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0,0,0" />
- </Grid>
- <Grid Height="37.5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.53*"/>
- <ColumnDefinition Width="0.35*"/>
- <ColumnDefinition Width="0.25*"/>
- </Grid.ColumnDefinitions>
- <Label Content="Replen2 Pump Factor" FontWeight="Bold" FontSize="14" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- <Border Background="Black" Margin="20,6,5,6" Grid.Column="1">
- <TextBlock x:Name="PumpFactorBlock2" Text="{Binding ElementName=self,Path=ReplensPersistentCollection[1].ReplenPumpFactor,StringFormat=\{0:F3\}}" Foreground="Lime" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Button Grid.Column="2" FontSize="12" Content="Calibrate" Click="Calibrate2_Click" Style="{StaticResource SysBtnStyle}" Height="32" Width="58" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0,0,0" />
- </Grid>
- <Grid Height="37.5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.53*"/>
- <ColumnDefinition Width="0.35*"/>
- <ColumnDefinition Width="0.25*"/>
- </Grid.ColumnDefinitions>
- <Label Content="Replen3 Pump Factor" FontWeight="Bold" FontSize="14" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- <Border Background="Black" Margin="20,6,5,6" Grid.Column="1">
- <TextBlock x:Name="PumpFactorBlock3" Text="{Binding ElementName=self,Path=ReplensPersistentCollection[2].ReplenPumpFactor,StringFormat=\{0:F3\}}" Foreground="Lime" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Button Grid.Column="2" FontSize="12" Content="Calibrate" Click="Calibrate3_Click" Style="{StaticResource SysBtnStyle}" Height="32" Width="58" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0,0,0" />
- </Grid>
- <Grid Height="37.5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.53*"/>
- <ColumnDefinition Width="0.35*"/>
- <ColumnDefinition Width="0.25*"/>
- </Grid.ColumnDefinitions>
- <Label Content="Replen4 Pump Factor" FontWeight="Bold" FontSize="14" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- <Border Background="Black" Margin="20,6,5,6" Grid.Column="1">
- <TextBlock x:Name="PumpFactorBlock4" Text="{Binding ElementName=self,Path=ReplensPersistentCollection[3].ReplenPumpFactor,StringFormat=\{0:F3\}}" Foreground="Lime" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Button Grid.Column="2" FontSize="12" Content="Calibrate" Click="Calibrate4_Click" Style="{StaticResource SysBtnStyle}" Height="32" Width="58" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0,0,0" />
- </Grid>
- </StackPanel>
- </Grid>
- </UserControl>
|