| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 | <UserControl x:Class="CyberX8_MainPages.Views.DosingSystemView"             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_MainPages.Views"             xmlns:prism="http://prismlibrary.com/"              xmlns:customControls="clr-namespace:CyberX8_Themes.CustomControls;assembly=CyberX8_Themes"             xmlns:UserControls="clr-namespace:CyberX8_Themes.UserControls;assembly=CyberX8_Themes"              xmlns:Converters="clr-namespace:CyberX8_Themes.Converters;assembly=CyberX8_Themes"             prism:ViewModelLocator.AutoWireViewModel="True"             mc:Ignorable="d" x:Name="self"             d:DesignHeight="800" d:DesignWidth="1850">    <UserControl.Resources>        <Converters:BoolToVisibility2 x:Key="boolToVisibility2"/>        <Converters:IntToTargetNumber1 x:Key="intToTargetNumber1"/>        <Converters:IntToTargetNumber2 x:Key="intToTargetNumber2"/>    </UserControl.Resources>    <Grid>        <Grid.RowDefinitions>            <RowDefinition Height="5"/>            <RowDefinition Height="170"/>            <RowDefinition Height="1*"/>            <RowDefinition Height="1*"/>        </Grid.RowDefinitions>        <Grid.ColumnDefinitions>            <ColumnDefinition Width="610"/>            <ColumnDefinition/>            <ColumnDefinition Width="280"/>        </Grid.ColumnDefinitions>        <UserControls:BottleReserveControl Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="500" Margin="0,27,0,0" ModuleName="{Binding Module}"                                           BottleReserveVolume1="{Binding ReplensPersistentCollection[0].RemainDosingVolume}"                                           BottleReserveVolume2="{Binding ReplensPersistentCollection[1].RemainDosingVolume}"/>        <Grid Grid.Row="1" Grid.RowSpan="3" Grid.Column="1" Margin="40,40,0,10">            <Grid.RowDefinitions>                <RowDefinition Height="312"/>                <RowDefinition Height="1*"/>            </Grid.RowDefinitions>            <StackPanel Grid.Row="0" Orientation="Horizontal" FlowDirection="LeftToRight">                <UserControls:ReplenControl ModuleName="{Binding Module}" ReplenName="{Binding ReplenDataCollection[0].ReplenName}" IsPumpOpen="{Binding ReplenDataCollection[0].ReplenPumpEnable}"                             CurrentDosingVolume="{Binding ReplensPersistentCollection[0].CurrentDosingVolume}" Visibility="{Binding ReplenEnable[0], Converter={StaticResource boolToVisibility2}}"                            BottleLevel="{Binding ReplenDataCollection[0].BottleLevel}" IsEnabled="{Binding IsEnabled}"/>                <UserControls:ReplenControl ModuleName="{Binding Module}" ReplenName="{Binding ReplenDataCollection[1].ReplenName}" IsPumpOpen="{Binding ReplenDataCollection[1].ReplenPumpEnable}"                             CurrentDosingVolume="{Binding ReplensPersistentCollection[1].CurrentDosingVolume}" Visibility="{Binding ReplenEnable[1], Converter={StaticResource boolToVisibility2}}"                            BottleLevel="{Binding ReplenDataCollection[1].BottleLevel}" IsEnabled="{Binding IsEnabled}"/>                <UserControls:ReplenControl ModuleName="{Binding Module}" ReplenName="{Binding ReplenDataCollection[2].ReplenName}" IsPumpOpen="{Binding ReplenDataCollection[2].ReplenPumpEnable}"                             CurrentDosingVolume="{Binding ReplensPersistentCollection[2].CurrentDosingVolume}" Visibility="{Binding ReplenEnable[2], Converter={StaticResource boolToVisibility2}}"                            BottleLevel="{Binding ReplenDataCollection[2].BottleLevel}" IsEnabled="{Binding IsEnabled}"/>                <UserControls:ReplenControl ModuleName="{Binding Module}" ReplenName="{Binding ReplenDataCollection[3].ReplenName}" IsPumpOpen="{Binding ReplenDataCollection[3].ReplenPumpEnable}"                             CurrentDosingVolume="{Binding ReplensPersistentCollection[3].CurrentDosingVolume}" Visibility="{Binding ReplenEnable[3], Converter={StaticResource boolToVisibility2}}"                            BottleLevel="{Binding ReplenDataCollection[3].BottleLevel}" IsEnabled="{Binding IsEnabled}"/>            </StackPanel>            <UserControls:DosingControl Grid.Row="1" Grid.Column="1" IsAutoEnabled="{Binding IsAutoEnabled}" IsDisableEnabled="{Binding IsEnabled}" x:Name="dosingControl" HorizontalAlignment="Left" VerticalAlignment="Top"                                    ModuleName="{Binding Module}" ReplenDatas="{Binding ReplenDataCollection}" ReplenNum="{Binding ReplenNum}"                                     Width="{Binding ReplenNum,Converter={StaticResource intToTargetNumber1}}" ReplensPersistentCollection="{Binding ReplensPersistentCollection}"                                    Height="{Binding ReplenNum,Converter={StaticResource intToTargetNumber2}}" IsManualorAuto="{Binding IsManualorAuto}"                                       />        </Grid>        <UserControls:SrdOverviewInformationPanel Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"                                ModuleTitle="Dosing System" IsEnabled="{Binding IsEnabled}"                                                              StateValue="{Binding State}"                               OperatingModeValue="{Binding ReplensPersistentCollection[0].OperatingMode}"/>        <Grid Grid.Row="1" Grid.Column="3">            <Grid.RowDefinitions>                <RowDefinition Height="60"></RowDefinition>                <RowDefinition Height="50"></RowDefinition>                <RowDefinition Height="60"></RowDefinition>            </Grid.RowDefinitions>            <Grid Grid.Row="0">                <Label Content="{Binding Module}" FontSize="35" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,13"></Label>            </Grid>            <Grid Grid.Row="1">                <Button Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsAutoEnabled}" Grid.Column="1" Height="30" Width="100" HorizontalAlignment="Center" Content="Initialize" Command="{Binding InitializeCommand}" Click="Button_Click"></Button>            </Grid>            <Grid Grid.Row="2">                <Label Content="Operating Mode"  FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Label>            </Grid>        </Grid>        <Grid Grid.Row="2" Grid.Column="3" Height="155" VerticalAlignment="Top">            <UserControls:OperatingModeControl HorizontalAlignment="Left" VerticalAlignment="Top"                             ModuleName="{Binding Module}" Margin="10,10,0,0" SubModuleName="DosingSystem"                            OperationModeValue="{Binding ReplensPersistentCollection[0].OperatingMode}"/>        </Grid>        <Button Style="{StaticResource SysBtnStyle}"  Grid.Column="2" Height="30" Width="100" HorizontalAlignment="Left" Content="Back" Command="{Binding BackCommand}" Canvas.Left="1555" Canvas.Top="721" VerticalAlignment="Top" Margin="75,175,0,0" Grid.Row="2"/>    </Grid></UserControl>
 |