<Window x:Class="MeterVision.Patch.AddPatchDlg"
        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:MeterVision.Patch"
        mc:Ignorable="d"
        Background="WhiteSmoke"
        ResizeMode="NoResize"
        ShowInTaskbar="False"
        WindowStartupLocation="CenterOwner"
        Title="新增批量任务" Height="240" Width="320">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Background="White" Margin="10 10 10 0">
            <StackPanel Margin="20" VerticalAlignment="Center">
                <TextBlock Text="请输入任务名称:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
                <TextBox x:Name="txtPatchName" Text="" FontSize="14"  Margin="0,5,0,10" Padding="2" />

                <TextBlock Text="选择标准模板:" FontSize="14px" Foreground="#333333" HorizontalAlignment="Left" VerticalAlignment="Center" />
                <ComboBox x:Name="cmbStand" FontSize="14px" Foreground="#000000" DisplayMemberPath="StandName2"  
                          SelectionChanged="CmbStand_SelectionChanged"
                          Margin="0,5,0,0" Padding="2"/>
            </StackPanel>
        </Border>

        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Name="btnOK" Content="确定" HorizontalAlignment="Center" Margin="0 0 20 0"
                    VerticalAlignment="Center" Width="80" Height="26" Click="BtnOK_Click" />
            <Button Name="btnClose" Content="取消" HorizontalAlignment="Center" 
                    VerticalAlignment="Center" Width="80" Height="26" Click="BtnClose_Click" />
        </StackPanel>

    </Grid>
</Window>
