<Window x:Class="StressDataAnalyzer.DataAnalyzer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Stress Data Analyzer" Height="520" Width="732" ResizeMode="NoResize" Loaded="Window_Loaded" SizeToContent="WidthAndHeight">
    <Grid>
        <GroupBox Header="Criteria" Height="171" HorizontalAlignment="Left" Margin="191,7,0,0" Name="criteria" VerticalAlignment="Top" Width="507">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="228*" />
                    <ColumnDefinition Width="221*" />
                </Grid.ColumnDefinitions>
                <DatePicker HorizontalAlignment="Left" Margin="75,11,0,0" Name="startDate" VerticalAlignment="Top" IsEnabled="False" />
                <Label Content="From:" Height="28" Margin="32,11,0,0" Name="label1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" />
                <Label Content="To:" Height="28" Margin="27,8,35,0" Name="label2" VerticalAlignment="Top" Grid.Column="1" />
                <DatePicker HorizontalAlignment="Left" Margin="62,11,0,0" Name="endDate" VerticalAlignment="Top" Grid.Column="1" IsEnabled="False" />
                <Label Content="From:" Height="28" HorizontalAlignment="Left" Margin="32,37,0,0" Name="label3" VerticalAlignment="Top" Width="120" />
                <Label Content="To:" Height="28" Margin="27,37,35,0" Name="label4" VerticalAlignment="Top" Grid.Column="1" />
                <Label Content="From:" Height="28" HorizontalAlignment="Left" Margin="32,62,0,0" Name="label5" VerticalAlignment="Top" Width="120" />
                <Label Content="To:" Height="28" Margin="27,62,35,0" Name="label6" VerticalAlignment="Top" Grid.Column="1" />
                <Label Content="From:" Height="28" HorizontalAlignment="Left" Margin="32,88,0,0" Name="label7" VerticalAlignment="Top" Width="120" />
                <Label Content="To:" Height="28" Margin="27,85,35,0" Name="label8" VerticalAlignment="Top" Grid.Column="1" />
                <Slider Height="23" HorizontalAlignment="Left" Margin="75,42,0,0" Name="fromTemperature" VerticalAlignment="Top" Width="100" Maximum="500" IsSnapToTickEnabled="True" IsEnabled="False" Minimum="200" />
                <TextBox Text="{Binding ElementName=fromTemperature, Path=Value}" Height="23" HorizontalAlignment="Left" Margin="181,42,0,0" Name="displayFromTemperature" VerticalAlignment="Top" Width="68" IsReadOnly="True" />
                <Slider Height="23" HorizontalAlignment="Left" Margin="62,42,0,0" Name="toTemperature" VerticalAlignment="Top" Width="100" Maximum="500" IsSnapToTickEnabled="True" Value="500" Grid.Column="1" IsEnabled="False" />
                <TextBox Height="23" HorizontalAlignment="Left" IsReadOnly="True" Margin="168,42,0,0" Name="displayToTemperature" Text="{Binding ElementName=toTemperature, Path=Value}" VerticalAlignment="Top" Width="68" Grid.Column="1" />
                <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="75,69,0,0" Maximum="5000" Name="fromAppliedStress" VerticalAlignment="Top" Width="100" IsEnabled="False" Minimum="10" />
                <TextBox Height="23" HorizontalAlignment="Left" IsReadOnly="True" Margin="181,69,0,0" Name="displayFromAppliedStress" Text="{Binding ElementName=fromAppliedStress, Path=Value}" VerticalAlignment="Top" Width="68" />
                <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="62,69,0,0" Maximum="5000" Name="toAppliedStress" VerticalAlignment="Top" Width="100" Value="5000" Grid.Column="1" IsEnabled="False" />
                <TextBox Height="23" HorizontalAlignment="Left" IsReadOnly="True" Margin="168,69,0,0" Name="displayToAppliedStress" Text="{Binding ElementName=toAppliedStress, Path=Value}" VerticalAlignment="Top" Width="68" Grid.Column="1" />
                <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="75,95,0,0" Maximum="1500" Name="fromDeflection" VerticalAlignment="Top" Width="100" IsEnabled="False" />
                <TextBox Height="23" HorizontalAlignment="Left" IsReadOnly="True" Margin="181,95,0,0" Name="displayFromDeflection" Text="{Binding ElementName=fromDeflection, Path=Value}" VerticalAlignment="Top" Width="68" />
                <Slider Height="23" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Margin="62,95,0,0" Maximum="1500" Name="toDeflection" VerticalAlignment="Top" Width="100" Value="1500" Grid.Column="1" IsEnabled="False" />
                <TextBox Height="23" HorizontalAlignment="Left" IsReadOnly="True" Margin="168,95,0,0" Name="displayToDeflection" Text="{Binding ElementName=toDeflection, Path=Value}" VerticalAlignment="Top" Width="68" Grid.Column="1" />
                <CheckBox Content="" Height="16" HorizontalAlignment="Left" Margin="6,16,0,0" Name="specifyDateRange" VerticalAlignment="Top" Width="30" Checked="SpecifyDateRange_Checked" Unchecked="SpecifyDateRange_Unchecked" />
                <CheckBox Content="" Height="16" HorizontalAlignment="Left" Margin="6,42,0,0" Name="specifyTemperatureRange" VerticalAlignment="Top" Width="30" Checked="SpecifyTemperatureRange_Checked" Unchecked="SpecifyTemperatureRange_Unchecked" />
                <CheckBox Content="" Height="16" HorizontalAlignment="Left" Margin="6,67,0,0" Name="specifyAppliedStressRange" VerticalAlignment="Top" Width="30" Checked="SpecifyAppliedStressRange_Checked" Unchecked="SpecifyAppliedStressRange_Unchecked" />
                <CheckBox Content="" Height="16" HorizontalAlignment="Left" Margin="6,93,0,0" Name="specifyDeflectionRange" VerticalAlignment="Top" Width="30" Checked="SpecifyDeflectionRange_Checked" Unchecked="SpecifyDeflectionRange_Unchecked" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Order By" Height="171" HorizontalAlignment="Left" Margin="12,7,0,0" Name="orderBy" VerticalAlignment="Top" Width="168">
            <Grid>
                <RadioButton Content="Test Date" Height="16" HorizontalAlignment="Left" Margin="6,16,0,0" Name="orderByDate" VerticalAlignment="Top" Width="120" IsChecked="False" />
                <RadioButton Content="Temperature" Height="16" HorizontalAlignment="Left" Margin="6,41,0,0" Name="orderByTemperature" VerticalAlignment="Top" Width="120" />
                <RadioButton Content="Applied Stress" Height="16" HorizontalAlignment="Left" Margin="6,65,0,0" Name="orderByAppliedStress" VerticalAlignment="Top" Width="120" />
                <RadioButton Content="Deflection" Height="16" HorizontalAlignment="Left" Margin="6,90,0,0" Name="orderByDeflection" VerticalAlignment="Top" Width="120" />
                <RadioButton Content="None" Height="16" HorizontalAlignment="Left" Margin="6,114,0,0" Name="noOrder" VerticalAlignment="Top" Width="120" IsChecked="True" />
            </Grid>
        </GroupBox>
        <TextBox Height="210" HorizontalAlignment="Left" Margin="12,240,0,0" Name="results" VerticalAlignment="Top" Width="686" IsReadOnly="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" FontSize="15" />
        <StatusBar Height="23" HorizontalAlignment="Left" Margin="0,458,0,0" Name="status" VerticalAlignment="Top" Width="710">
            <StatusBarItem Content="Ready" Name="statusMessage" />
        </StatusBar>
        <GroupBox Header="Execute" Height="56" HorizontalAlignment="Left" Margin="12,178,0,0" Name="groupBox1" VerticalAlignment="Top" Width="686">
            <Grid>
                <CheckBox Content="Limit?" Height="16" HorizontalAlignment="Left" Margin="97,8,0,0" Name="limit" VerticalAlignment="Top" Width="59" Checked="Limit_Checked" Unchecked="Limit_Unchecked" />
                <Button Content="Display" Height="23" HorizontalAlignment="Left" Margin="6,4,0,0" Name="displayResults" VerticalAlignment="Top" Width="75" Click="DisplayResults_Click" IsEnabled="False" />
                <Slider Height="23" HorizontalAlignment="Left" Margin="162,4,0,0" Name="numRows" VerticalAlignment="Top" Width="105" IsEnabled="False" Minimum="100" Maximum="50000" IsSnapToTickEnabled="True" LargeChange="100" SmallChange="50" Value="100" />
                <TextBox Height="23" HorizontalAlignment="Right" Margin="0,4,351,0" Name="displayNumRows" VerticalAlignment="Top" Width="50" IsReadOnly="True" Text="{Binding ElementName=numRows, Path=Value}" />
                <Label Content="" Height="28" HorizontalAlignment="Left" Margin="348,2,0,0" Name="queryTime" VerticalAlignment="Top" Width="120" />
            </Grid>
        </GroupBox>
    </Grid>
</Window>
