<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Thread3DClientTool" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Thread3DClientTool.MainWindow"
        Title="Thread3D Client Tool" Height="950.87" Width="1267.478">
    <Grid RenderTransformOrigin="0.495,0.538">
        <Grid.RowDefinitions>
            <RowDefinition Height="700*"/>
            <RowDefinition Height="71*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="333*"/>
            <ColumnDefinition Width="622*"/>
        </Grid.ColumnDefinitions>
        <Button Name="btRequestTest" Content="Request test data" Grid.Row="1" HorizontalAlignment="Left" Height="30"  VerticalAlignment="Top" Width="127" Click="Button_RequestData_Click" Margin="71,0,0,0" ToolTip="Request test data from tracim server" />
        <Button x:Name="btRequestTest_Copy" Content="Load test data " Grid.Row="1" HorizontalAlignment="Left" Height="30"  VerticalAlignment="Top" Width="127" Click="Button_LoadData_Click" Margin="280,0,0,0" ToolTip="Load test data from xml file" />

        <Button Name="btSubmitResults" Content="Submit results" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Height="30"  VerticalAlignment="Top" Width="128" Click="Button_SubmitResults_Click" Margin="0,0,425,0" IsEnabled="False" ToolTip="Submit results to tracim server" />
        <StatusBar Name="stbStatus" HorizontalAlignment="Left" Height="25"  VerticalAlignment="Bottom" Width="1259" Grid.ColumnSpan="2" RenderTransformOrigin="0.501,-1.08" Grid.Row="1">
            <StatusBarItem Width="1261" RenderTransformOrigin="0.542,0.52" Height="25" VerticalAlignment="Bottom">
                <TextBlock Name="txtStatus">Text</TextBlock>
            </StatusBarItem>
        </StatusBar>
        <Button Name="btEvaluate" Content="Load results" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Height="30"  VerticalAlignment="Top" Width="128" Click="Button_EvaluateResults_Click" Margin="0,0,627,0" IsEnabled="True" ToolTip="Load results from ascii files"/>
        <WebBrowser x:Name="wbDisplay"  Grid.Column="1" HorizontalAlignment="Left" Margin="30,60" VerticalAlignment="Top"/>
        <TextBlock x:Name="tbActualXML" Grid.Column="1" HorizontalAlignment="Left" Margin="10,23,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="345" Height="16" FontSize="11"/>
        <Button Name="btClose" Content="Close" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Height="30"  VerticalAlignment="Top" Width="128" Click="Button_Close_Click" Margin="0,0,230,0" />

        <GroupBox Header="Software related" HorizontalAlignment="Left" Margin="21,290,0,0" VerticalAlignment="Top" Width="303" Height="194" Grid.Column="0" Grid.Row="0">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="98*"/>
                    <ColumnDefinition Width="193*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="42*"/>
                    <RowDefinition Height="42*"/>
                    <RowDefinition Height="42*"/>
                    <RowDefinition Height="43*"/>
                </Grid.RowDefinitions>

                <TextBox x:Name="tbSoftwareName" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Height="24"  TextWrapping="Wrap" Text="{Binding softwareName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"   Margin="5.206,9,0,9.168" Width="170"/>
                <TextBlock HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" TextWrapping="Wrap" VerticalAlignment="Center" Text="Software name" TextAlignment="Right"  Height="16" Margin="2,13,0,14" Width="87"/>

                <TextBox x:Name="tbSoftwareVersion" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Height="24"  TextWrapping="Wrap" Text="{Binding softwareVersion, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="center"   Margin="5.206,8.832,0,9.336" Width="170"/>
                <TextBlock HorizontalAlignment="Left"  Grid.Column="0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" Text="Software version" TextAlignment="Right"  Height="16" Margin="2,13,0,13" Width="88" />

                <TextBox x:Name="tbSoftwareRevision" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" Text="{Binding softwareRevision, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"  Margin="5.206,8.664,0,9.505" Width="170"/>
                <TextBlock HorizontalAlignment="Left"  Grid.Column="0" Grid.Row="2" TextWrapping="Wrap"  VerticalAlignment="Center" Text="Software revision" TextAlignment="Right"  Height="16" Margin="0,4" Width="91"/>

                <TextBox x:Name="tbSoftwareVendor" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" Text="{Binding softwareVendor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"  Margin="5.206,9.495,0,9.57" Width="170"/>
                <TextBlock HorizontalAlignment="Left"  Grid.Column="0" Grid.Row="3" TextWrapping="Wrap" VerticalAlignment="Center" Text="Software vendor" TextAlignment="Right"  Height="16" Margin="4,14,0,14" Width="87"/>


            </Grid>
        </GroupBox>

        <GroupBox Header="Connection settings"  Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="21,8,0,0" VerticalAlignment="Top" Height="154" Width="303">
            <Grid Height="136" Margin="0,0,12.692,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="49*"/>
                    <ColumnDefinition Width="90*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="24*"/>
                    <RowDefinition Height="24*"/>
                    <RowDefinition Height="24*"/>
                    <RowDefinition Height="24*"/>
                </Grid.RowDefinitions>
                <TextBox  x:Name="tbTraCIMServer" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Height="24"  Margin="6.206,5,0,5.093" TextWrapping="Wrap" Text="{Binding TraCIMServer, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="170"/>
                <TextBlock HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" TextWrapping="Wrap" TextAlignment="Right" VerticalAlignment="Center" Width="71" Height="16" Margin="19,9,0,9"><Run Text="TraCIM "/><Run Text="URL"/><Run Text=" U"/><Run Text="Server"/></TextBlock>

                <TextBox  x:Name="proxy" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Height="24" Margin="6.206,4.907,0,5.187" TextWrapping="Wrap" Text="{Binding proxyServer, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="170" ToolTip="Server:Port (leave blank if not applicable)"/>
                <TextBlock HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1"  TextWrapping="Wrap" Text="Proxy-Server" TextAlignment="Right" VerticalAlignment="Center" Width="71" Height="16" Margin="20,9,0,9"/>

                <TextBox  x:Name="proxyUser" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Height="24" Margin="6.206,4.813,0,5.28" TextWrapping="Wrap" Text="{Binding proxyUser, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="170" ToolTip="Proxy username (leave blank if not applicable)"/>
                <TextBlock Grid.Column="0" Grid.Row="2"  TextWrapping="Wrap" Text="Username" TextAlignment="Right" VerticalAlignment="Center" Height="16" Margin="19,9,8,9"/>

                <TextBox  x:Name="proxyPassword" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Height="24" Margin="6.206,4.72,0,5.374" TextWrapping="Wrap" Text="{Binding proxyPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="170" ToolTip="Proxy password (leave blank if not applicable)"/>
                <TextBlock HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3"  TextWrapping="Wrap" Text="Password" TextAlignment="Right" VerticalAlignment="Center" Width="71" Height="16" Margin="20,9,0,9"/>

            </Grid>
        </GroupBox>



        <GroupBox Header="Test related"  Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="21,176,0,0" VerticalAlignment="Top" Height="100" Width="303">
            <Grid Height="81" Margin="0,0,17.692,0" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="98*"/>
                    <ColumnDefinition Width="38*"/>
                    <ColumnDefinition Width="137*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="9*"/>
                    <RowDefinition Height="31*"/>
                    <RowDefinition Height="15*"/>
                    <RowDefinition Height="26*"/>

                </Grid.RowDefinitions>

                <TextBox  x:Name="tbOrderID" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Height="24" Margin="7,8,0,8" TextWrapping="Wrap" Text="{Binding OrderKey, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="168" ToolTip="Your order key " Grid.RowSpan="2" Grid.ColumnSpan="2"/>
                <TextBlock HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1"  TextWrapping="Wrap" Text="Order ID" TextAlignment="Right" VerticalAlignment="Top" Width="71" Height="16" Margin="20,3,0,0"/>

                <TextBox  x:Name="tbProcessID" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Height="24" Margin="7,9,0,8" TextWrapping="Wrap" Text="{Binding ProcessKey, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="168" IsEnabled="True" ToolTip="Process key" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
                <TextBlock Grid.Column="0" Grid.Row="2"  TextWrapping="Wrap" VerticalAlignment="Center" Height="16" Text="Process ID" TextAlignment="Right" Margin="20,13,0,12" HorizontalAlignment="Left" Width="71" Grid.RowSpan="2"/>

            </Grid>
        </GroupBox>




        <GroupBox Header="MPE"  Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="21,489,0,0" Width="303" Height="115" VerticalAlignment="Top">
            <Grid Margin="10,-7,-12,0" RenderTransformOrigin="0.52,0.646" Height="120" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="77*"/>
                    <ColumnDefinition Width="26"/>
                    <ColumnDefinition Width="90*"/>
                    <ColumnDefinition Width="100*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                </Grid.RowDefinitions>

                <TextBox x:Name="tbMPE_length" Text="{Binding mpeLength, Mode=TwoWay, UpdateSourceTrigger=LostFocus,StringFormat=G}" Grid.Row="0" VerticalAlignment="Center" Margin="17,12,89,86" Height="22" Grid.Column="2" Grid.ColumnSpan="2"/>
                <TextBlock HorizontalAlignment="Left" Height="20"  TextWrapping="Wrap"  VerticalAlignment="Center" Width="68" Grid.Column="0" Grid.Row="0" TextAlignment="Right" Margin="36,15,0,85" Grid.ColumnSpan="3"  Text="Length"  />
                <TextBlock HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Center" Width="48" Grid.Column="3" Grid.Row="0" Margin="18,14,0,82"><Run Text="µ"/><Run Language="de-de" Text="m"/></TextBlock>

                <TextBox x:Name="tbMPE_angle" Text="{Binding mpeAngle, Mode=TwoWay, UpdateSourceTrigger=LostFocus,StringFormat=G}" Grid.Row="0" VerticalAlignment="Center" Margin="17,42,89,56" Height="22" Grid.Column="2" Grid.ColumnSpan="2"/>
                <TextBlock HorizontalAlignment="Left" Height="22"  TextWrapping="Wrap"  VerticalAlignment="Center" Width="68" Grid.Column="0" Grid.Row="0" TextAlignment="Right" Margin="36,44,0,54" Grid.ColumnSpan="3"  Text="Angle"  />
                <TextBlock HorizontalAlignment="Right" Height="24" TextWrapping="Wrap" VerticalAlignment="Center" Width="48" Grid.Column="3" Margin="0,43,34,53"><Run Text="µ"/><Run Text="rad"/></TextBlock>

                <TextBox x:Name="tbMPE_taper" Text="{Binding mpeTaperOfPitchCone, Mode=TwoWay, UpdateSourceTrigger=LostFocus,StringFormat=G}" Grid.Row="0" VerticalAlignment="Center" Margin="17,72,89,26" Height="22" Grid.Column="2" Grid.ColumnSpan="2"/>
                <TextBlock HorizontalAlignment="Left" Height="22"  TextWrapping="Wrap"  VerticalAlignment="Center" Width="104" Grid.Column="0" Grid.Row="0" TextAlignment="Right" Margin="0,74,0,24" Grid.ColumnSpan="3"  ><Run Text="Taper of "/><Run Text="pitch "/><Run Text="cone"/></TextBlock>
                <TextBlock HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Center" Width="48" Grid.Column="3" Margin="18,75,0,21" Text="1E-6"/>

            </Grid>
        </GroupBox>
        <TextBlock HorizontalAlignment="Left" Height="65" Margin="23,699,0,0" TextWrapping="Wrap"  VerticalAlignment="Top" Width="289">To get your individual order key for example data please register at 
            <Hyperlink NavigateUri="https://tracim.ptb.de/tracim/customer/registration.jsf" RequestNavigate="Infolink_RequestNavigate">tracim.ptb.de</Hyperlink></TextBlock>
        <GroupBox Header="Demo Mode"  Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="21,621,0,0" Width="303" Height="61" VerticalAlignment="Top">
            <CheckBox x:Name="modeCheckBox" Content="Demo Mode for free test" IsChecked="{Binding loadFreeData}" HorizontalAlignment="Left" Height="39" VerticalAlignment="Top" Width="168" Margin="91,9,0,-9" ToolTip="If checked then &quot;Load results&quot; button will load the results for the free test data."/>
        </GroupBox>

    </Grid>
</Window>
