<Window x:Class="TSPTest.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:TSPTest"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="900" FontSize="16" Loaded="Window_Loaded" SizeChanged="Window_SizeChanged">
    <DockPanel>
        <StackPanel DockPanel.Dock="Left" Width="200" HorizontalAlignment="Left">
            <Label Content="选择问题:" />
            <ComboBox Name="cmbPoblem" Margin="3" SelectionChanged="cmbPoblem_SelectionChanged"/>
            <Label Content="选择算法:" />
            <ComboBox Name="cmbAlg" Margin="3" SelectionChanged="cmbAlg_SelectionChanged"/>
            <Button Name="button" Content="运行" Margin="3" Click="button_Click"/>
            <GroupBox Header="参数设置" FontSize="13" Margin="1">
                <StackPanel>
                    <Label Content="种群大小:" />
                    <StackPanel Orientation="Horizontal">
                        <Label Content="10"/>
                        <Slider Name="slider1" Value="50" Minimum="10" Maximum="100" Width="100" TickPlacement="BottomRight" TickFrequency="10" ValueChanged="slider1_ValueChanged" />
                        <Label Content="100"/>
                    </StackPanel>
                    <Label Content="迭代次数:" />
                    <StackPanel Orientation="Horizontal">
                        <Label Content="100"/>
                        <Slider Name="slider2" Value="1000" Minimum="10" Maximum="10000" Width="80" TickPlacement="BottomRight"  TickFrequency="1000" ValueChanged="slider2_ValueChanged" />
                        <Label Content="10000"/>
                    </StackPanel>
                    <Label Content="变化速度:" />
                    <Slider Name="slider3" Value="200" Minimum="10" Maximum="1000" TickPlacement="BottomRight" TickFrequency="50" ValueChanged="slider3_ValueChanged" />
                </StackPanel>
            </GroupBox>
            <Label Name="lbKnown" FontSize="18" Foreground="Blue" />
            <Label Name="lbResult" FontSize="21" Foreground="Red" />
        </StackPanel>
        <Canvas Name="canvas1" Grid.Column="1" />        
    </DockPanel>
</Window>
