<Window x:Class="ChecksumTool.MainWindow"
        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:ChecksumTool"
        mc:Ignorable="d"
        Title="Checksum Tool" Height="810" Width="800">

    <StackPanel Margin="10">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Button Name="btnCalculate" IsEnabled="True" Margin="5 5 5 5" Grid.Column="1" Content="Calculate" Click="btnCalculate_Click" />
            <Button Name="btnStore" IsEnabled="True" Margin="5,5,0,5" Grid.Column="2" Content="Store" Click="btnStore_Click" HorizontalAlignment="Left" Width="118" />
            <Button Name="btnValidate" IsEnabled="True" Margin="5 5 5 5" Grid.Column="3" Content="Validate" Click="btnValidate_Click" />
            <Button Name="btnReset" IsEnabled="True" Margin="5 5 5 5" Grid.Column="4" Content="Reset" RenderTransformOrigin="0.502,0.5" Click="btnReset_Click" />
        </Grid>

        <TextBlock Name="Spacer1" Text="" FontWeight="Bold" Margin="0 0 0 5" />

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBlock Name="lblUserName" Text="User Name:" Grid.Column="0" FontWeight="Bold" Margin="0 0 0 5" />
            <TextBlock Name="lblPassword" Text="Password:" Grid.Column="1" FontWeight="Bold" Margin="10 0 0 5" />
            <TextBlock Name="lblPasswordFiller" Text="" Grid.Column="2" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBox Name="tbUserName" Grid.Column="0" Padding="3" Margin="0 0 0 5" />
            <PasswordBox Name="tbPassword" Grid.Column="1" Padding="3" Margin="10 0 0 5" />
            <TextBlock Name="tbPasswordFiller" Text="" Grid.Column="2" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>

        <TextBlock Name="Spacer3" Text="" FontWeight="Bold" Margin="0 0 0 5" />

        <TextBlock Name="lblAlgorithm" Text="Algorithm:" FontWeight="Bold" Margin="0 0 0 5" />

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <ComboBox Name="cbAlgorithm" Grid.Column="0" SelectedIndex="3" Padding="2">
                <ComboBoxItem>MD5</ComboBoxItem>
                <ComboBoxItem>SHA1</ComboBoxItem>
                <ComboBoxItem>SHA256</ComboBoxItem>
                <ComboBoxItem>SHA384</ComboBoxItem>
                <ComboBoxItem>SHA512</ComboBoxItem>
            </ComboBox>
            <Label Grid.Column="1" />
        </Grid>

        <TextBlock Name="lblFile" Text="XML File:" FontWeight="Bold" Margin="0 0 0 5" />

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="10*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <TextBox Name="tbFileName" IsReadOnly="true" Grid.Column="0" Padding="3" Margin="0 0 5 5" />
            <Button Name="btnBrowse" Margin="5 0 5 5" Content="Browse" Grid.Column="1" Click="btnBrowse_Click" />
        </Grid>

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBlock Name="lblXMLFileType" Text="XML File Type:" Grid.Column="0" FontWeight="Bold" Margin="0 0 0 5" />
            <TextBlock Name="lblXMLFileTypeFiller" Text="" Grid.Column="1" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>


        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBox Name="tbXMLFileType" IsReadOnly="True" Grid.Column="0" Padding="3" Margin="0 0 0 5" />
            <TextBlock Name="tbXMLFileTypeFiller" Grid.Column="1" Padding="3" Margin="10 0 0 5" />
        </Grid>



        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="7*" />
            </Grid.ColumnDefinitions>

            <TextBlock Name="lblSubmitterID" Text="Submitter ID:" Grid.Column="0" FontWeight="Bold" Margin="0 0 0 5" />
            <TextBlock Name="lblSubmitterName" Text="Submitter Name:" Grid.Column="1" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>


        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="7*" />
            </Grid.ColumnDefinitions>

            <TextBox Name="tbSubmitterID" IsReadOnly="True" Grid.Column="0" Padding="3" Margin="0 0 0 5" />
            <TextBox Name="tbSubmitterName" IsReadOnly="True" Grid.Column="1" Padding="3" Margin="10 0 0 5" />
        </Grid>

        <TextBlock Name="lblPrimaryReference" Text="Primary Reference:" FontWeight="Bold" Margin="0 0 0 5" />
        <TextBox Name="tbPrimaryReference" IsReadOnly="True" Padding="3" Margin="0 0 0 5" />

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBlock Name="lblDocSeqNbr" Text="Doc Seq#:" Grid.Column="0" FontWeight="Bold" Margin="0 0 0 5" />
            <TextBlock Name="lblDocCount" Text="Doc Count:" Grid.Column="1" FontWeight="Bold" Margin="10 0 0 5" />
            <TextBlock Name="lblFiller3" Text="" Grid.Column="2" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>

        <Grid Margin="0 0 0 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="4*" />
            </Grid.ColumnDefinitions>

            <TextBox Name="tbDocSeqNbr" Grid.Column="0" Padding="3" Margin="0 0 0 5" />
            <TextBox Name="tbDocCount" IsReadOnly="True" Grid.Column="1" Padding="3" Margin="10 0 0 5" />
            <TextBlock Name="lblFiller4" Text="" Grid.Column="2" FontWeight="Bold" Margin="10 0 0 5" />
        </Grid>

        <TextBlock Name="lblChecksumValue" Text="Base64 Document Checksum (Base64 Encoded):" FontWeight="Bold" Margin="0 0 0 5" />
        <TextBox Name="tbChecksumValue" Padding="3" Margin="0 0 0 5" />

        <TextBlock Name="Spacer5" Text="" FontWeight="Bold" Margin="0 0 0 5" />

        <TextBlock Name="lblChecksumKey" Text="Base64 Document Checksum Key:" FontWeight="Bold" Margin="0 0 0 5" />
        <TextBox Name="tbChecksumKey" Padding="3" Margin="0 0 0 5" />

        <TextBlock Name="Spacer6" Text="" FontWeight="Bold" Margin="0 0 0 5" />

        <TextBlock Name="lblValidationResult" Text="Validation Result:" FontWeight="Bold" Margin="0 0 0 5" />
        <TextBox Name="tbValidationResult" IsReadOnly="True" Padding="3" Margin="0 0 0 5"/>

        <TextBlock Name="Spacer2" Text="" FontWeight="Bold" Margin="0 0 0 5" />

        <TextBox Name="tbMessageLine" Text="" FontWeight="Bold" Foreground="Red" IsReadOnly="True" Padding="3" BorderThickness="0" Margin="0 0 0 5"/>
    </StackPanel>
</Window>
