<mah:MetroWindow x:Class="BDU.Windows.SystemConfigWindow"
                 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:mah="http://metro.mahapps.com/winfx/xaml/controls"
                 xmlns:local="clr-namespace:BDU.Windows"
                 mc:Ignorable="d"
                 Title="SystemConfigWindow"
                 Width="420"
                 Height="430"
                 d:DataContext="{d:DesignInstance Type=local:SystemConfigWindow}"
                 ShowTitleBar="False"
                 WindowStartupLocation="CenterScreen"
                 WindowStyle="None">
    <Grid>
        <GroupBox Padding="10,15,10,0"
                  Header="系统参数配置"
                  MouseLeftButtonDown="GroupBox_MouseLeftButtonDown">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <ScrollViewer>
                    <StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="性能等级*"
                                   ToolTip="最高等级为0，易造成卡顿"/>
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.PerformanceLevel}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="日志路径*" />
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.LogFilePath}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="指令路径*" />
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.DLLFilePath}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="子程序路径*" />
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.SubProgramFilePath}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label  Width="100"
                                    VerticalAlignment="Bottom"
                                    Content="设备预设路径*" />
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.PreDefineDevicesPath}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="DBC文件路径*" />
                            <TextBox MinWidth="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.DBCFilePath}" />
                        </StackPanel>
                        <StackPanel Height="30"
                                    Margin="7"
                                    Orientation="Horizontal">
                            <Label Width="100"
                                   VerticalAlignment="Bottom"
                                   Content="默认程序路径*" />
                            <TextBox Width="200"
                                     VerticalAlignment="Bottom"
                                     Text="{Binding ConfigCopy.DefaultSubProgramFilePath}" />
                        </StackPanel>
                    </StackPanel>
                </ScrollViewer>
                <StackPanel Grid.Row="1"
                            Margin="5,10,5,15"
                            FlowDirection="RightToLeft"
                            Orientation="Horizontal">
                    <Button Width="70"
                            Click="Cancel_Click"
                            Content="取消" />
                    <Button Width="70"
                            Margin="20,0"
                            Click="Save_Click"
                            Content="保存" />
                </StackPanel>
            </Grid>
        </GroupBox>
    </Grid>
</mah:MetroWindow>