<UserControl x:Class="BPASmartClient.MorkF.View.DebugView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:BPASmartClient.MorkF.View"
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="1300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
                <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="120" ></RowDefinition>
            <RowDefinition Height="100"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <GroupBox Header="设备控制" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" Height="120">
            <WrapPanel Orientation="Horizontal"   VerticalAlignment="Top" Margin="0,5,0,0">
                <Button Content="初始化" Command="{Binding PlcInite}"  Margin="10,0,10,0" Cursor="Hand"></Button>
                <Button Content="模拟订单" Command="{Binding SimulateOrder}"  Margin="10,0,10,0" Cursor="Hand"></Button>
                <Button Content="自动模式" Command="{ Binding AutoModel}" Margin="10,0,10,0" Cursor="Hand"></Button>
                <Button Content="手动模式" Command="{Binding ManualModel}" Margin="10,0,10,0"></Button>
                <Button Content="打开抽风" Command="{Binding OpenExhaust}" Margin="10,0,10,0"></Button>
                <Button Content="关闭抽风" Command="{Binding CloaseExhaust}" Margin="10,0,10,0"></Button>
                <Button Content="料仓1" Command="{Binding MaterialOne}" Margin="10,0,10,0"></Button>
                <Button Content="料仓2" Command="{Binding MaterialTwo}" Margin="10,0,10,0"></Button>
                <Button Content="料仓3" Command="{Binding MaterialThree}" Margin="10,0,10,0"></Button>
                <Button Content="料仓4" Command="{Binding MaterialFour}" Margin="10,0,10,0"></Button>
                <Button Content="料仓5" Command="{Binding MaterialFive}" Margin="10,0,10,0"></Button>
                <Button Content="供盘" Command="{Binding OutPlate}" Margin="10,0,10,0"></Button>
                <Button Content="清洗模组1启动" Command="{Binding StartQXOne}" Margin="10,0,10,0"></Button>
                <Button Content="清洗模组2启动" Command="{Binding StartQXTwo}" Margin="10,10,10,0" Cursor="Hand"></Button>
                <CheckBox Name="checkValue" Content="运行模拟订单程序" Margin="10,10,10,0" IsChecked="{Binding SimOrderEnable}"></CheckBox>
            </WrapPanel>
        </GroupBox>
        <GroupBox Header="菜品选择" FontSize="15" Foreground="Aqua" Grid.Row="1" Margin="0,0,0,40" VerticalAlignment="Top" Height="100">
            <WrapPanel Orientation="Horizontal"  Height="52"  VerticalAlignment="Center" >
                <Button Content="手撕包菜" Command="{Binding ShreddCabbage}"  Margin="10,0,10,0"></Button>
                <Button Content="盐煎肉" Command="{Binding FryPork}"  Margin="10,0,10,0"></Button>
                <Button Content="酱烧杏鲍菇" Command="{Binding XingBaoGu}"  Margin="10,0,10,0"></Button>
            </WrapPanel>
        </GroupBox>
        <StackPanel Orientation="Vertical" Grid.Row="2">
            <GroupBox Header="机器人控制" FontSize="15" Foreground="Aqua"  VerticalAlignment="Center" Height="95">
                <WrapPanel Orientation="Horizontal" Grid.RowSpan="2" VerticalAlignment="Top" Margin="0,5,0,0" >
                    <Button Content="取锅" Command="{Binding TakePot}"  Margin="10,0,10,0"></Button>
                    <!--<Button Content="取锅复位" Command="{Binding TakePotReset}"  Margin="10,0,10,0"></Button>-->
                    <Button Content="取料" Command="{Binding TakeMaterial}"  Margin="10,0,10,0"></Button>
                    <Button Content="出餐" Command="{Binding OutMeal}"  Margin="10,0,10,0"></Button>
                </WrapPanel>
            </GroupBox>

            <GroupBox Header="炒锅1" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" Height="140">
                <WrapPanel VerticalAlignment="Top" Margin="0,5,0,0">
                    <Button Content="注油" Command="{Binding AddOil}"  Margin="10,0,10,0"></Button>
                    <Button Content="加热关闭" Command="{Binding TempTurnOff}"   Margin="10,0,10,0"></Button>
                    <Button Content="加热1挡" Command="{Binding OneBlock}" Margin="10,0,10,0"></Button>
                    <Button Content="加热2挡" Command="{Binding TwoBlock}"  Margin="10,0,10,0"></Button>
                    <Button Content="加热3挡" Command="{Binding ThreeBlock}"  Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机关闭" Command="{Binding OverTurnOff}"  Margin="10,0,10,0" Cursor="Hand"></Button>
                    <Button Content="翻炒机上升" Command="{Binding OverGoOn}"  Margin="10,0,15,0" Cursor="Hand"></Button>
                    <Button Content="翻炒机下降" Command="{Binding OverGoDown}"  Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机1挡" Command="{Binding OverOneBlock}"  Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机2挡" Command="{Binding OverTwoBlock}"   Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机3挡" Command="{Binding OverThreeBlock}"   Margin="10,0,10,0"></Button>
                </WrapPanel>
            </GroupBox>
            <GroupBox Header="炒锅2" FontSize="15" Foreground="Aqua"  VerticalAlignment="Center" Height="140">
                <WrapPanel VerticalAlignment="Top" Margin="0,5,0,0">
                    <Button Content="注油" Command="{Binding SecAddOil}"   Margin="10,0,10,0"></Button>
                    <Button Content="加热关闭" Command="{Binding SecTempTurnOff}"   Margin="10,0,10,0"></Button>
                    <Button Content="加热1挡" Command="{Binding SecOneBlock}"   Margin="10,0,10,0"></Button>
                    <Button Content="加热2挡" Command="{Binding SecTwoBlock}"  Margin="10,0,10,0"></Button>
                    <Button Content="加热3挡" Command="{Binding SecThreeBlock}"   Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机关闭" Command="{Binding SecOverTurnOff}"  Margin="10,0,10,0" Cursor="Hand"></Button>
                    <Button Content="翻炒机上升" Command="{Binding SecOverGoOn}"   Margin="10,0,15,0" Cursor="Hand"></Button>
                    <Button Content="翻炒机下降" Command="{Binding SecOverGoDown}"   Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机1挡" Command="{Binding SecOverOneBlock}"   Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机2挡" Command="{Binding SecOverTwoBlock}"   Margin="10,0,10,0"></Button>
                    <Button Content="翻炒机3挡" Command="{Binding SecOverThreeBlock}"   Margin="10,0,10,0"></Button>

                </WrapPanel>
                
            </GroupBox>

        </StackPanel>

    </Grid>
</UserControl>
