<Page x:Class="BoFilTest.UI.EndPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:BoFilTest.UI"
        mc:Ignorable="d"
        Title="TEST_FINISHED_TITLE">
    <Page.Resources>
        <Style TargetType="TextBox">
            <Setter Property="Margin" Value="2,2,2,2"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="Margin" Value="5,2,5,2"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style TargetType="ComboBox">
            <Setter Property="Margin" Value="2,2,2,2"/>
        </Style>
        <Style TargetType="CheckBox">
            <Setter Property="Margin" Value="1,1,1,1"/>
        </Style>

    </Page.Resources>
    <Grid x:Name="MainLayout" Margin="6, 6, 6, 6">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <TextBlock x:Name="titleLabel" HorizontalAlignment="Left" FontSize="48"/>
            <Image Source="{StaticResource Logo}" Width="400" Grid.Row="0" Grid.Column="1" VerticalAlignment="Top" Margin="8" />
        </Grid>
        <TextBlock Grid.Row="1" Text="FILTER_CAKE_DATA" HorizontalAlignment="Left" FontSize="32"/>
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="10"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="10"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Text="FILTER_CAKE_CONSISTENCY" HorizontalAlignment="Right" />
            <ComboBox x:Name="CakeConsistencyComboBox"
                      Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" SelectedValue="{Binding CakeConsistency}"/>

            <TextBlock Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" Text="FILTER_CAKE_CRACKING" HorizontalAlignment="Right" />
            <ComboBox x:Name="CakeCrackingComboBox"
                      Grid.Row="0" Grid.Column="6" Grid.ColumnSpan="2" SelectedValue="{Binding CakeCracking}"/>

            <TextBlock Grid.Row="0" Grid.Column="8" Grid.ColumnSpan="2" Text="EDGE_DISSOLUTION" HorizontalAlignment="Right"/>
            <ComboBox x:Name="EdgeDissolutionComboBox"
                      Grid.Row="0" Grid.Column="10" Grid.ColumnSpan="2" SelectedValue="{Binding EdgeDissolution}"/>


            <TextBlock Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Text="CAKE_HEIGHT" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="3" Text="{Binding CakeHeight}"/>
            <TextBlock Grid.Row="2" Grid.Column="6" Grid.ColumnSpan="3" Text="INITIAL_SUSPENSION_WEIGHT" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="2" Grid.Column="9" Grid.ColumnSpan="3" Text="{Binding InitialSuspensionWeight}"/>

            <TextBlock Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Text="TARE" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3" Text="{Binding Tare}"/>
            <TextBlock Grid.Row="3" Grid.Column="6" Grid.ColumnSpan="3" Text="CAKE_WEIGHT_MOIST_TARE" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="3" Grid.Column="9" Grid.ColumnSpan="3" Text="{Binding CakeWeight}"/>

            <CheckBox Grid.Row="5" Grid.Column="3" Grid.ColumnSpan="5" IsChecked="{Binding EvaluateThis}">
                <TextBlock x:Name="evaluateThis" Text="EVALUATE_THIS"/>
            </CheckBox>

            <TextBlock x:Name="notes" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" Text="NOTES" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <TextBox Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="9" Text="{Binding Notes}" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap" MinHeight="60"/>

        </Grid>
        <TextBlock Grid.Row="3" Text="MEASURED_VALUES" HorizontalAlignment="Left" FontSize="32"/>
        <Grid Grid.Row="4">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="20"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="CAKE_FORMATION_TIME" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding CakeFormationTime}"/>
            <TextBlock Grid.Row="0" Grid.Column="2" Text="INTERMEDIATE_DEMOISTURIZING_TIME_1" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="0" Grid.Column="3" Text="{Binding IntermediateDemoisturizingTime1}"/>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="WASHING_TIME_1" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding WashingTime1}"/>
            <TextBlock Grid.Row="1" Grid.Column="2" Text="INTERMEDIATE_DEMOISTURIZING_TIME_2" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="1" Grid.Column="3" Text="{Binding IntermediateDemoisturizingTime2}"/>

            <TextBlock Grid.Row="2" Grid.Column="0" Text="WASHING_TIME_2" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding WashingTime2}"/>
            <TextBlock Grid.Row="2" Grid.Column="2" Text="INTERMEDIATE_DEMOISTURIZING_TIME_3" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="2" Grid.Column="3" Text="{Binding IntermediateDemoisturizingTime3}"/>

            <TextBlock Grid.Row="3" Grid.Column="0" Text="WASHING_TIME_3" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding WashingTime3}"/>
            <TextBlock Grid.Row="3" Grid.Column="2" Text="INTERMEDIATE_DEMOISTURIZING_TIME_4" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="3" Grid.Column="3" Text="{Binding IntermediateDemoisturizingTime4}"/>

            <TextBlock Grid.Row="4" Grid.Column="0" Text="PRESSING_TIME" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding PressingTime}"/>
            <TextBlock Grid.Row="4" Grid.Column="2" Text="VAPORIZATION_TIME" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="4" Grid.Column="3" Text="{Binding VaporizationTime}"/>

            <TextBlock Grid.Row="5" Grid.Column="0" Text="GAS_BREAKTHROUGH_TIME" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding GasBreakthroughTime}"/>
            <TextBlock Grid.Row="5" Grid.Column="2" Text="DEMOISTURIZING_TIME" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="5" Grid.Column="3" Text="{Binding DemoisturizingTime}"/>

            <TextBlock Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="3" Text="GAS_INTEGRAL_DURING_VAPORIZATION_AND_DEMOISTURIZING" HorizontalAlignment="Right"/>
            <TextBlock Grid.Row="7" Grid.Column="3" Text="{Binding GasIntegralForArea}"/>

        </Grid>
        <Grid Grid.Row="5" VerticalAlignment="Bottom" >
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="100"/>
            </Grid.ColumnDefinitions>
            <Button Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Click="FilterExport_Click" Margin="10" MinHeight="80">
                <TextBlock FontSize="24" Text="EXPORT_AS_FILTER_EVALUATION"/>
            </Button>
            <Button Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Click="DropTest_Click" Margin="10" MinHeight="80">
                <TextBlock FontSize="24" Text="DISCARD_TEST"/>
            </Button>
        </Grid>
    </Grid>
</Page>
