<UserControl x:Class="SlnMesnac.WPF.Page.DevMonitorPage"
             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:SlnMesnac.WPF.Page"
                 mc:Ignorable="d" 
             d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent">



    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="13*"/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0"  BorderBrush="White" BorderThickness="0.4" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
            <Grid >

                <StackPanel  VerticalAlignment="Center" Orientation="Horizontal" >
                    <Ellipse x:Name="SystemStatusColor"  VerticalAlignment="Center" Width="50" Height="50" Fill="Red"/>
                    <TextBlock x:Name="SystemStatusTxt" Text="系统停机中" FontSize="35" VerticalAlignment="Center" Width="180"  Foreground="White" />
                    <Button  x:Name="StartButton"  Style="{StaticResource  BUTTON_AGREE}" Content="一键启动"  FontSize="30" Background="LimeGreen" Width="180"  Height="45"  Margin="0 0 20 0" Click="StartButton_Click"/>
                    <Button  x:Name="StopButton"   Style="{StaticResource  BUTTON_AGREE}" Content="一键停止"  FontSize="30" Background="OrangeRed" Width="180" Height="45"  Margin="0,0,20,0" Click="StopButton_Click"/>

                    <TextBlock Text="气压实时监测:" FontSize="25" VerticalAlignment="Center" Width="172"  Foreground="White" Margin="50 0 10 0" />
                    <TextBlock  x:Name="PressureTxt" Text="0" Width="110" FontSize="25" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                   
                    <TextBlock Text="缓存区重量:" FontSize="25" VerticalAlignment="Center" Width="140"  Foreground="White" HorizontalAlignment="Left" Margin="80 0 10 0" />
                    <TextBlock  x:Name="BufferWeightTxt" Text="0" Width="80" FontSize="25" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                    <Button  x:Name="SetStopWeightButton"   Content="设置重量阈值"  FontSize="25" Foreground="White" Background="CadetBlue" Width="200"  Height="60"  Margin="0 0 20 0" HorizontalAlignment="Left" Click="SetStopWeightButton_Click" />


                    <TextBlock  Visibility="Collapsed" Text="包装袋余量:" FontSize="25" VerticalAlignment="Center" Width="140" Margin="50,0,20,0" Foreground="White" HorizontalAlignment="Left"/>
                    <TextBlock   Visibility="Collapsed" x:Name="BagsAmountTxt" Text="0" Width="80" FontSize="25" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                    <Button   Visibility="Collapsed" x:Name="AmountChangeButton" Style="{StaticResource  BUTTON_AGREE}"  Content="数量调整"  FontSize="30" Background="CadetBlue" Width="180"  Height="60"  Margin="0 0 20 0" HorizontalAlignment="Left" Click="AmountChangeButton_Click"/>

                    <Button   x:Name="MachineStopHistoryButton"   Content="停机记录"  FontSize="25" Foreground="White" Background="CadetBlue" Width="200"  Height="60"   Margin="30 0 20 0" HorizontalAlignment="Left" Click="MachineStopHistoryButton_Click"/>

                </StackPanel>
            </Grid>
        </Border>

        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Grid.Row="0" Grid.Column="0" BorderBrush="LimeGreen" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="9*"/>
                        <RowDefinition Height="3*"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="拆包机设备监控"  FontSize="22" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Grid Grid.Row="1">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>

                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="0.3*"/>
                        </Grid.ColumnDefinitions>


                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus0" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="拆包机MES允许远程" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus1" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="拆包机系统运行状态" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>

                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus7" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="连接状态" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus8" VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="拆包机堵料停螺旋报警" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="翻转机频率反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <TextBlock  x:Name="UnpackStatus9" Text="" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="滚筒筛频率反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <TextBlock  x:Name="UnpackStatus10" Text="" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="螺旋1频率反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <TextBlock  x:Name="UnpackStatus11" Text="" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="螺旋2频率反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <TextBlock  x:Name="UnpackStatus12" Text="" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="4" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="废袋机频率反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <TextBlock  x:Name="UnpackStatus13" Text="" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>


                        <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="设备请求叫料信号:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Width="200" Foreground="White"/>
                            <!--<TextBlock  x:Name="UnpackStatus2" Text="False" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>-->
                        </StackPanel>
                        <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus3" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="物料到位请求翻转信号:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0"  Width="200" Foreground="White"/>
                            <!--<TextBlock  x:Name="UnpackStatus3" Text="False" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>-->
                        </StackPanel>
                        <StackPanel Grid.Row="6" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus4" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="设备投料允许翻转信号:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0"  Width="200" Foreground="White"/>
                            <!--<TextBlock  x:Name="UnpackStatus4" Text="False" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>-->
                        </StackPanel>
                        <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="UnpackStatus5" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="请求移走空托盘信号:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0"  Width="200" Foreground="White"/>
                            <!--<TextBlock  x:Name="UnpackStatus5" Text="False" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>-->
                        </StackPanel>

                        <StackPanel x:Name="UnpackBackColor" Grid.Row="0" Grid.Column="2" Orientation="Horizontal"   Background="Green" Height="50">
                            <TextBlock Text="拆包机状态" VerticalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>


                    </Grid>
                    <!--<DataGrid ItemsSource="{Binding UnPackDataGrid}" Background="Transparent" 
          FontSize="15" ColumnHeaderHeight="35" 
          RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0" 
          GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
          ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Left"
          Foreground="#FFFFFF" Margin="150,41,0,0" Grid.RowSpan="2" >
                        -->
                    <!--resourceStyle 399行修改选中字体颜色-->
                    <!--
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Name}" Header="监听点位" Width="3*" IsReadOnly="True"/>
                            <DataGridTextColumn Binding="{Binding Value}" Header="监听值" Width="2*" IsReadOnly="True"/>
                        </DataGrid.Columns>
                    </DataGrid>-->
                    <Grid Grid.Row="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" >
                            <!--<TextBlock    Text="翻转机:" FontSize="20" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="White"/>
                            <TextBox x:Name="UnpackSet1Txt"  Text="0.00" Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="White"/>
                            <TextBlock    Text="滚筒筛:" FontSize="20" VerticalAlignment="Center" Margin="5,0,5,0" Foreground="White"/>
                            <TextBox x:Name="UnpackSet2Txt"  Text="0.00"  Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White"/>-->
                            <!--<TextBlock    Text="螺旋1:" FontSize="20" VerticalAlignment="Center" Margin="5,0,5,0" Foreground="White"/>
                            <TextBox x:Name="UnpackSet3Txt"  Text="0.00"  Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White"/>
                            <TextBlock    Text="螺旋2:" FontSize="20" VerticalAlignment="Center" Margin="5,0,5,0" Foreground="White"/>
                            <TextBox x:Name="UnpackSet4Txt"  Text="0.00"  Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White"/>
                            -->
                            <!--<TextBlock    Text="滚筒筛:" FontSize="20" VerticalAlignment="Center" Margin="5,0,5,0" Foreground="White"/>
                            <TextBox x:Name="UnpackSet5Txt"  Text="0.00"  Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White"/>-->
                            <!--
                            <Button x:Name="UnpackSetButton" Content="频率设定(0-50HZ)" FontSize="20" Width="170"  Height="40" VerticalAlignment="Center" Margin="0,0,0,0" Background="Blue" Click="UnpackSetButton_Click"  />-->

                        </StackPanel>
                        <StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" >

                            <Button   x:Name="StartUnPackButton"  Content="拆包机启动"  FontSize="20" Background="LimeGreen" Width="125"  Height="40"  Margin="0 0 20 0" Click="StartUnPackButton_Click" />
                            <Button   x:Name="StopUnPackButton" Content="拆包机停止"  FontSize="20" Background="OrangeRed" Width="120" Height="40"  Margin="0,0,20,0" Click="StopUnPackButton_Click"/>
                            <Button  x:Name="StopUrgentButton"  Style="{StaticResource  BUTTON_AGREE}" Content="急停"  FontSize="20" Background="#E4B74C" Width="120"  Height="40"  Margin="0,0,0,0" Click="StopUrgentButton_Click"/>

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

            </Border>
            <Border Grid.Row="0" Grid.Column="1" BorderBrush="LimeGreen" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="10*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="烘干机设备监控"  FontSize="22" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>

                    <Grid Grid.Row="1">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="0.3*"/>
                        </Grid.ColumnDefinitions>

                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal1_1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机螺旋状态:" FontSize="20" VerticalAlignment="Center"  Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal1_1_Value" Text="停止" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>


                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal1_2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机传动启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal2_1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机风机状态:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal2_1_Value" Text="停止" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal2_2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机风机启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal3_1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机燃烧机状态:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal3_1_Value" Text="停止" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal3_2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机燃烧启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>

                        <StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal4_1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="烘干机燃烧机运行" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal4_2"  VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="烘干机存在报警" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>

                        <StackPanel Grid.Row="6" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="烘干机烘干温度:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal5_1_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="烘干机加热温度:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal5_2_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="5" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="烘干机出气温度:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal6_1_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse  Width="30" Height="30" Visibility="Hidden"/>
                            <TextBlock Text="烘干机输出百分百:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal6_2_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>

                        <StackPanel Grid.Row="4" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal7_1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="烘干机堵料报警" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="HotSignal7_2"  VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="烘干机报警:" FontSize="20" VerticalAlignment="Center" Width="170" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="HotSignal7_2_Value" Text="无" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <!--<StackPanel Grid.Row="7" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <TextBox x:Name="HotSpiralSpeedTxt"   Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="30,0,10,0" Foreground="White"/>
                            <Button x:Name="HotSpiralSpeedSet" Content="烘干机螺旋频率设定" FontSize="20" Width="200"  Height="40" VerticalAlignment="Center" Margin="0,0,20,0" Background="Blue" Click="HotSpiralSpeedSet_Click"  />
                        </StackPanel>-->
                        <!--<StackPanel Grid.Row="7" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <TextBox x:Name="HotTempTxt"    Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="30,0,10,0" Foreground="White"/>
                            <Button x:Name="HotTempSet" Content="烘干机温度设定" FontSize="20" Width="150"  Height="40" VerticalAlignment="Center" Margin="0,0,20,0" Background="Blue" Click="HotTempSet_Click"  />
                        </StackPanel>-->
                        <StackPanel x:Name="HotSpiralBackColor" Grid.Row="0" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="螺旋状态" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                        <StackPanel x:Name="HotFansBackColor" Grid.Row="1" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="风机状态" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                        <StackPanel x:Name="HotBurnBackColor" Grid.Row="2" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="燃烧状态" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                    </Grid>

                    <StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" >
                        <!--<TextBox x:Name="HotSpiralSpeedTxt"   Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="30,0,10,0" Foreground="White"/>
                        <Button x:Name="HotSpiralSpeedSet" Content="螺旋频率设定" FontSize="20" Width="150"  Height="40" VerticalAlignment="Center" Margin="0,0,20,0" Background="Blue" Click="HotSpiralSpeedSet_Click"  />-->
                        <Button  x:Name="StartDryerSpiralButton" Style="{StaticResource  BUTTON_AGREE}" Content="螺旋启动"  FontSize="20" Background="LimeGreen" Width="120"  Height="40"  Margin="0 0 20 0" Click="StartDryerSpiralButton_Click"/>
                        <Button  x:Name="StartDryerFanButton" Style="{StaticResource  BUTTON_AGREE}"  Content="风机启动"  FontSize="20" Background="LimeGreen" Width="90"  Height="40"  Margin="0 0 20 0" Click="StartDryerFanButton_Click"/>
                        <Button  x:Name="StartDryerHotButton" Style="{StaticResource  BUTTON_AGREE}"  Content="燃烧启动"  FontSize="20" Background="LimeGreen" Width="90"  Height="40"  Margin="0 0 20 0" Click="StartDryerHotButton_Click"/>
                        <Button  x:Name="StopDryerSpiralButton" Style="{StaticResource  BUTTON_AGREE}"  Content="螺旋停止"  FontSize="20" Background="OrangeRed" Width="90" Height="40"  Margin="0,0,20,0" Click="StopDryerSpiralButton_Click"/>
                        <Button  x:Name="StopDryerHotButton"  Style="{StaticResource  BUTTON_AGREE}" Content="燃烧停止"  FontSize="20" Background="OrangeRed" Width="90" Height="40"  Margin="0,0,20,0" Click="StopDryerHotButton_Click"/>
                        <Button  x:Name="StopDryerFanButton" Style="{StaticResource  BUTTON_AGREE}"  Content="风机停止"  FontSize="20" Background="OrangeRed" Width="90" Height="40"  Margin="0,0,0,0" Click="StopDryerFanButton_Click"/>
                    </StackPanel>

                </Grid>

            </Border>
            <Border Grid.Row="1" Grid.Column="0" BorderBrush="LimeGreen" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="3*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="磁选机设备监控"  FontSize="22" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="0.3*"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus1"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机震动启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机磁选启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus3" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机MES允许远程" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus4" VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="磁选机设备报警" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>

                        <StackPanel x:Name="MagNetShakeBackColor" Grid.Row="0" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="磁选机震动" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                        <StackPanel x:Name="MagNetBackColor" Grid.Row="1" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="磁选机磁选" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                    </Grid>
                    <StackPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" >
                        <Button    x:Name="StartMagNetButton" Style="{StaticResource  BUTTON_AGREE}" Content="磁选启动"  FontSize="20" Background="LimeGreen" Width="150"  Height="40"  Margin="0 0 20 0" Click="StartMagNetButton_Click"/>
                        <Button    x:Name="StopMagNetButton" Style="{StaticResource  BUTTON_AGREE}" Content="磁选停止"  FontSize="20" Background="OrangeRed" Width="150" Height="40"  Margin="0,0,0,0" Click="StopMagNetButton_Click"/>
                    </StackPanel>



                    <TextBlock Grid.Row="3" Text="除尘机设备监控"  FontSize="22" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Grid Grid.Row="4">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="0.3*"/>
                        </Grid.ColumnDefinitions>

                        <StackPanel x:Name="DustBackColor" Grid.Row="0" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="除尘状态" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                        <!--<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus11"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机震动启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus21" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机磁选启动" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus31" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="磁选机MES允许远程" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="MagNetStatus41" VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="磁选机设备报警" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>-->
                    </Grid>
                    <StackPanel Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Horizontal" >
                        <Button    x:Name="StartDustButton" Style="{StaticResource  BUTTON_AGREE}" Content="除尘启动"  FontSize="20" Background="LimeGreen" Width="150"  Height="40"  Margin="0 0 20 0" Click="StartDustButton_Click" />
                        <Button    x:Name="StopDustButton" Style="{StaticResource  BUTTON_AGREE}" Content="除尘停止"  FontSize="20" Background="OrangeRed" Width="150" Height="40"  Margin="0,0,0,0" Click="StopDustButton_Click" />
                    </StackPanel>





                </Grid>
            </Border>
            <Border Grid.Row="1" Grid.Column="1" BorderBrush="LimeGreen" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="10*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="螺旋机设备监控"  FontSize="22" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <Grid Grid.Row="1">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="82.238"/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="0.3*"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal0"  VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋1允许远程" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal1" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋2允许远程" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal2" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋1启动状态" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal3" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋2启动状态" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal6" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋1速度反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="SpiralSignal6_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal7" VerticalAlignment="Center" Width="30" Height="30" Fill="Red"/>
                            <TextBlock Text="螺旋2速度反馈:" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                            <TextBlock  x:Name="SpiralSignal7_Value" Text="0.00" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal4" VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="螺旋1变频器报警" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>
                        <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="50 0 0 0">
                            <Ellipse x:Name="SpiralSignal5" VerticalAlignment="Center" Width="30" Height="30" Fill="Green"/>
                            <TextBlock Text="螺旋2变频器报警" FontSize="20" VerticalAlignment="Center" Margin="0,0,20,0" Foreground="White"/>
                        </StackPanel>


                        <StackPanel x:Name="Spiral1BackColor" Grid.Row="0" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="螺旋1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>
                        <StackPanel x:Name="Spiral2BackColor" Grid.Row="1" Grid.Column="2" Orientation="Horizontal"   Background="Green" Margin="0,3" Height="50">
                            <TextBlock Text="螺旋2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24" Foreground="White"/>
                        </StackPanel>

                    </Grid>

                    <StackPanel Grid.Row="2"  VerticalAlignment="Top" Orientation="Horizontal" HorizontalAlignment="Center">
                        <!--<TextBox x:Name="Speed1Txt"  Text="0.00" Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="White"/>
                        <TextBlock    Text="/" FontSize="20" VerticalAlignment="Center" Margin="5,0,5,0" Foreground="White"/>
                        <TextBox x:Name="Speed2Txt"  Text="0.00"  Width="70" Height="35" FontSize="20" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White"/>
                        <Button x:Name="SpiralSpeed" Content="螺旋1/2频率设定(0-50HZ)" FontSize="20" Width="250"  Height="40" VerticalAlignment="Center" Margin="0,0,20,0" Background="Blue" Click="SpiralSpeed_Click" />-->

                        <Button  x:Name="StartSpiral1Button"  Content="螺旋1启动"  FontSize="20" Background="LimeGreen" Width="100"  Height="40"  Margin="30 0 10 0" Click="StartSpiral1Button_Click"/>
                        <Button  x:Name="StartSpiral2Button"  Content="螺旋2启动"  FontSize="20" Background="LimeGreen" Width="100"  Height="40"  Margin="0 0 10 0" Click="StartSpiral2Button_Click"/>
                        <Button  x:Name="StopSpiral1Button"   Content="螺旋1停止"  FontSize="20" Background="OrangeRed" Width="100" Height="40"  Margin="0,0,10,0" Click="StopSpiral1Button_Click"/>
                        <Button  x:Name="StopSpiral2Button"   Content="螺旋2停止"  FontSize="20" Background="OrangeRed" Width="100" Height="40"  Margin="0,0,0,0" Click="StopSpiral2Button_Click"/>
                    </StackPanel>
                </Grid>
            </Border>
        </Grid>
    </Grid>


</UserControl>
