<Window x:Class="Khd.Core.Wpf.TaskForm.AddTask"
        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:Khd.Core.Wpf.TaskForm"
        mc:Ignorable="d"
        WindowState="Normal"
        WindowStartupLocation="CenterScreen"
        Background="#333333"
        Loaded="Window_Loaded"
        Title="" Height="450" Width="800" ResizeMode="NoResize" WindowStyle="None">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Text="人工调度任务下发" Foreground="White" FontSize="50" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        <!--<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <TextBlock Text="托盘号：" Foreground="White" FontSize="25" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            <TextBox x:Name="RFID" FontSize="25" Height="50" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </StackPanel>-->
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <TextBlock Text="起始点：" Foreground="White" FontSize="25" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            <ComboBox x:Name="StartPoint" DisplayMemberPath="equipName" Height="50" Width="160" FontSize="25" SelectionChanged="StartPoint_SelectionChanged">
                <ComboBox.ItemContainerStyle>
                    <Style TargetType="{x:Type ComboBoxItem}">
                        <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
                        <Setter Property="Tag" Value="{Binding objid}"/>
                    </Style>
                </ComboBox.ItemContainerStyle>
            </ComboBox>

            <TextBlock Text="终点：" Foreground="White" FontSize="25" Margin="50,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            <ComboBox x:Name="EndPoint" DisplayMemberPath="equipName" Height="50" Width="160" FontSize="25" SelectionChanged="EndPoint_SelectionChanged" >
                <ComboBox.ItemContainerStyle>
                    <Style TargetType="{x:Type ComboBoxItem}">
                        <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
                        <Setter Property="Tag" Value="{Binding objid}"/>
                    </Style>
                </ComboBox.ItemContainerStyle>
            </ComboBox>
        </StackPanel>
        <StackPanel Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" >
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,30">
                <TextBlock Text="空托盘数量：" Foreground="White" FontSize="25" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                <ComboBox x:Name="EmptyCount" Width="100" Height="50">
                    <ComboBoxItem Content="1" Tag="1"/>
                    <ComboBoxItem Content="2" Tag="2"/>
                    <ComboBoxItem Content="3" Tag="3"/>
                    <ComboBoxItem Content="4" Tag="4"/>
                    <ComboBoxItem Content="5" Tag="5"/>
                    <ComboBoxItem Content="6" Tag="6"/>
                    <ComboBoxItem Content="7" Tag="7"/>
                    <ComboBoxItem Content="8" Tag="8"/>
                    <ComboBoxItem Content="9" Tag="9"/>
                    <ComboBoxItem Content="10" Tag="10"/>
                </ComboBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button x:Name="AddTaskBtn" Content="下发任务" FontSize="25" Width="160" Height="50" Foreground="White" Background="#2196F3" VerticalAlignment="Center" HorizontalAlignment="Center" Click="AddTaskBtn_Click"/>
                <Button x:Name="CancelBtn" Content="取消" FontSize="25" Width="160" Height="50" Foreground="White" Background="#F44336" Click="CancelBtn_Click"  VerticalAlignment="Center" HorizontalAlignment="Center" Margin="100,0,0,0"/>

            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
