<Window x:Class="MachUtilPlanner.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:MachUtilPlanner"
        mc:Ignorable="d"
        Title="Machine Utilization Optimization" Height="540" Width="960">
    <DockPanel>
        <StackPanel DockPanel.Dock="Left" HorizontalAlignment="Left" Width="180">
            <Label Content="Test problem:"></Label>
            <ComboBox Name="cmbProblems"></ComboBox>
            <StackPanel Orientation="Horizontal" Margin="3">
                <Label Content="Algorithms:"></Label>
                <Button Name="btnAlgSel" Content="Select" Click="btnAlgSel_Click" />
            </StackPanel>
            <ListBox Name="lbAlgs" SelectionMode="Multiple" MaxHeight="200" ScrollViewer.VerticalScrollBarVisibility="Auto"></ListBox>
            <StackPanel Orientation="Horizontal" Margin="3"/>
            <WrapPanel Orientation="Horizontal" Margin="3">
                <RadioButton Name="rbMaxIters" Content="Max iterations: "></RadioButton>
                <TextBox Name="tbMaxIters" Text="100" VerticalAlignment="Center" IsEnabled="False"/>
                <RadioButton Name="rbMaxNfes" Content="Max NFEs: " IsChecked="True"></RadioButton>
                <TextBox Name="tbMaxNfes" Text="5000" VerticalAlignment="Center"/>
            </WrapPanel>
            <StackPanel Orientation="Horizontal" Margin="3">
                <Label Content="Runs:" VerticalAlignment="Center"/>
                <TextBox Name="tbRuns" Text="10" VerticalAlignment="Center"/>
                <Label Content="times" IsEnabled="False"></Label>
            </StackPanel>
            <CheckBox Name="chkPorg" Content="Record progress" Margin="3"></CheckBox>
            <StackPanel Orientation="Horizontal" Margin="3">
                <Label Content="Every"></Label>
                <TextBox Name="tbIntvs" Text="1000" VerticalAlignment="Center"/>
                <Label Content="iterations/nfe" IsEnabled="False"></Label>
            </StackPanel>
            <Button Name="btnRun" Content="Run Test" Margin="3"></Button>
            <Button Name="btnClear" Content="Clear results" Margin="3"></Button>
        </StackPanel>
        <DockPanel DockPanel.Dock="Right">
            <StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Orientation="Horizontal">
                <Button Name="btnExport" Content="导出到Excel" Click="btnExport_Click" Margin="3"></Button>
            </StackPanel>
            <TextBox Name="tbResult" Margin="3" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" FontSize="12"></TextBox>
        </DockPanel>
    </DockPanel>
</Window>
