|
- <UserControl
- x:Class="BPASmartClient.Academy.View.DeviceMotionView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.Academy.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
- d:DataContext="{d:DesignInstance Type=vm:DeviceMotionViewModel}"
- d:DesignHeight="950" d:DesignWidth="1735" mc:Ignorable="d">
- <UserControl.Resources>
- <Style x:Key="checkBox" TargetType="{x:Type CheckBox}">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <Border
- x:Name="bord"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentControl
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- Foreground="{TemplateBinding Foreground}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="radiobutton" TargetType="RadioButton">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="FontSize" Value="8" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="RadioButton">
- <Border
- x:Name="bord"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentControl
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- Foreground="{TemplateBinding Foreground}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid>
- <Grid
- Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
- <Border Margin="0,0,100,0" HorizontalAlignment="Center">
- <Button
- Margin="20,5"
- Command="{Binding DataRecordCommand}"
- Content="选择设备类型"
- Style="{StaticResource ButtonStyle}" />
- </Border>
- </Grid>
- <Grid
- x:Name="ooo" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" d:IsHitTestVisible="True"
- d:Opacity="1" IsHitTestVisible="False" Opacity="0.5">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="0" />
- </Grid.RowDefinitions>
- <Grid>
- <Grid Margin="0,100">
- <Viewbox Stretch="Uniform">
- <Canvas Width="970" Height="450">
-
- <!--#region 配料搅拌-->
- <TextBlock
- Canvas.Left="62" Canvas.Top="10" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="配料釜搅拌" />
- <StackPanel
- Canvas.Left="56" Canvas.Top="35" Orientation="Horizontal">
- <bpa:MotorTwo
- Width="60" Height="30" Margin="0,-20,0,0"
- MotorColors="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=3}" />
- <bpa:MotorHousing
- Width="50" Height="50" Margin="-20,0,0,0" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门1 进料阀-->
- <StackPanel
- Canvas.Left="87" Canvas.Top="150" Width="70" Height="120">
- <bpa:PipeLineV
- Width="15" Height="80"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTR
- Width="30" Margin="0,-1,-15,0"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15" Speed="10" />
- </StackPanel>
- <TextBlock
- Canvas.Left="70" Canvas.Top="130" FontSize="10"
- Foreground="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="进料阀" />
- <StackPanel
- Canvas.Left="90" Canvas.Top="65" Width="65" Height="130">
- <bpa:JAR Width="65" Height="65" />
- <bpa:HandValve
- Width="45" Height="65" Margin="0,-20,-12,0"
- EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX100}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- </StackPanel>
- <bpa:PipeLineH
- Canvas.Left="144" Canvas.Top="244" Width="65" Height="15"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门3 回油阀-->
- <bpa:PipeLineTL
- Canvas.Left="427" Canvas.Top="200" Width="16" Margin="0,0,0,-8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25" Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="435" Canvas.Top="177" Width="8" Height="23"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <TextBlock FontSize="10"
- Canvas.Left="492" Canvas.Top="135" HorizontalAlignment="Left" VerticalAlignment="Center"
- Foreground="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="回油阀" />
- <StackPanel
- Canvas.Left="435" Canvas.Top="160" Orientation="Horizontal">
- <bpa:PipeLineBR
- Width="16" Margin="0,0,0,-8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25" Speed="10" />
- <bpa:PipeLineH
- Width="50" Height="8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
- EdgeColor="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX102}" />
- <bpa:PipeLineH
- Width="50" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门4 回水阀-->
- <TextBlock
- Canvas.Left="511" Canvas.Top="220" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="10"
- Foreground="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="回水阀" />
- <StackPanel
- Canvas.Left="427" Canvas.Top="200" Orientation="Horizontal">
- <bpa:PipeLineH
- Width="93" Height="8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Width="25" Margin="-1,-7,0,0" Panel.ZIndex="1"
- EdgeColor="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX103}" />
- <bpa:PipeLineH
- Width="100" Height="8" Margin="-6,0,0,0" Panel.ZIndex="0"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTL
- Width="16" Margin="0,0,0,8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25" Speed="10" />
-
- </StackPanel>
- <bpa:PipeLineV
- Canvas.Left="646" Canvas.Top="170" Width="8" Height="30"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="638" Canvas.Top="154" Width="16"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25" Speed="10" />
- <bpa:PipeLineH
- Canvas.Left="607" Canvas.Top="154" Width="31" Height="8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门3-4连接-->
- <bpa:PipeLineH
- Canvas.Left="229" Canvas.Top="208" Width="198" Height="8"
- Direction="{Binding PipeLine.PipeH_1.Direction}"
- Fill="{Binding PipeLine.PipeH_1.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门5 汇馏阀-->
- <TextBlock
- Canvas.Left="610" Canvas.Top="240" FontSize="10"
- Foreground="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="汇馏阀" />
- <bpa:PipeLineV
- Canvas.Left="584" Canvas.Top="185" Width="8" Height="95"
- Direction="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="579" Canvas.Top="240" Width="25"
- EdgeColor="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX104}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门2 蒸馏阀-->
- <bpa:PipeLineH
- Canvas.Left="258" Canvas.Top="244" Width="65" Height="15"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTL
- Canvas.Left="321" Canvas.Top="229" Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15" Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="336" Canvas.Top="180" Width="15" Height="50"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="336" Canvas.Top="40" Width="15" Height="110"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBR
- Canvas.Left="336" Canvas.Top="10" Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15" Speed="10" />
- <bpa:PipeLineH
- Canvas.Left="366" Canvas.Top="10" Width="200" Height="15"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <TextBlock FontSize="10"
- Canvas.Left="371" Canvas.Top="156" HorizontalAlignment="Center" VerticalAlignment="Top"
- Foreground="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸馏阀" />
- <bpa:HandValve
- Canvas.Left="327" Canvas.Top="136" Width="45" Height="65"
- EdgeColor="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <StackPanel Canvas.Left="555" Canvas.Top="10">
- <bpa:PipeLineBL
- Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15" Speed="10" />
- <bpa:Condenser
- Width="65" Height="80" Margin="0,0,-15,0" />
- <bpa:PipeLineV
- Width="8" Height="20" Margin="0,-4,-15,0"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:Tanks
- Width="60" Height="60" Margin="0,-5,-15,0" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门6 排馏阀-->
- <TextBlock
- Canvas.Left="620" Canvas.Top="350" FontSize="10"
- Foreground="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="排馏阀" />
- <bpa:PipeLineV
- Canvas.Left="596" Canvas.Top="330" Width="8" Height="50"
- Direction="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="591" Canvas.Top="350" Width="25"
- EdgeColor="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX105}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门7 冷凝器冷却水阀-->
- <TextBlock
- Canvas.Left="610" Canvas.Top="37" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷凝器冷却水阀" />
- <bpa:PipeLineH
- Width="65" Height="8" Margin="607,68,402,154"
- Direction="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
- LineWidth="2" />
- <bpa:HandValve
- x:Name="VX106" Width="30" Height="20" Margin="617,58,402,154"
- OpenEnable="{Binding DeviceStatus.VX106}"
- RenderTransformOrigin="0.5,0.5" />
- <!--#endregion-->
-
- <!--#region 阀门8 配料釜蒸汽阀-->
- <bpa:PipeLineH
- Canvas.Left="149" Canvas.Top="85" Width="70" Height="10"
- Direction="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="179" Canvas.Top="74" Width="30" Height="25"
- OpenEnable="{Binding DeviceStatus.VX107}" />
- <TextBlock
- Canvas.Left="161" Canvas.Top="57" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="配料釜蒸汽阀" />
- <!--#endregion-->
-
- <!--#region 阀门9 反应釜蒸汽阀-->
- <TextBlock
- Canvas.Left="35" Canvas.Top="249" HorizontalAlignment="Left" VerticalAlignment="Center"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸汽阀" />
- <bpa:PipeLineTR
- Width="24" Height="24" Margin="81,266,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="18" Speed="10" />
- <bpa:PipeLineTR
- Width="24" Height="24" Margin="81,266,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="18" Speed="10" />
- <bpa:PipeLineV
- Width="12" Height="40" Margin="81,226,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <bpa:HandValve
- x:Name="VX108" Width="35" Height="35" Margin="65,240,402,154"
- OpenEnable="{Binding DeviceStatus.VX108}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="270" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门10 反应釜蒸汽疏水阀-->
- <TextBlock
- Canvas.Left="287" Canvas.Top="304" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸汽疏水阀" />
- <bpa:PipeLineV
- Canvas.Left="348" Canvas.Top="287" Width="12" Height="43"
- Direction="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <bpa:HandValve
- Width="35" Height="35" Margin="341,296,402,154"
- OpenEnable="{Binding DeviceStatus.VX109}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门11 反应釜冷却水给水阀-->
- <TextBlock
- Canvas.Left="399" Canvas.Top="239" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷却水给水阀" />
- <bpa:PipeLineTL
- Width="24" Height="24" Margin="360,266,402,154"
- Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
- LineWidth="18" Speed="1" />
-
- <bpa:PipeLineV
- Width="12" Height="40" Margin="372,226,402,154"
- Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
- LineWidth="4" Speed="10" />
- <bpa:HandValve
- x:Name="VX110" Width="35" Height="35" Margin="365,232,402,154"
- OpenEnable="{Binding DeviceStatus.VX110}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门12 冷却水排水阀-->
- <TextBlock
- Canvas.Left="124" Canvas.Top="306" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷却水排水阀" />
- <bpa:PipeLineV
- Width="12" Height="50" Margin="105,290,402,154"
- Direction="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=6}"
- LineWidth="4" />
- <bpa:HandValve
- x:Name="VX111" Width="35" Height="35" Margin="89,297,402,154"
- OpenEnable="{Binding DeviceStatus.VX111}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="270" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门9-12链接-->
- <bpa:PipeLineH
- Width="95" Height="12" Margin="105,278,402,154"
- Direction="{Binding PipeLine.PipeH_3.Direction}"
- LineWidth="4">
- <bpa:PipeLineH.Fill>
- <MultiBinding Converter="{StaticResource MultiBoolToColorConverter}" ConverterParameter="Lime,Red">
- <Binding Path="DeviceStatus.VX111" />
- <Binding Path="DeviceStatus.VX108" />
- </MultiBinding>
- </bpa:PipeLineH.Fill>
- </bpa:PipeLineH>
- <!--#endregion-->
-
- <!--#region 阀门10-11连接-->
- <bpa:PipeLineH
- Width="95" Height="12" Margin="265,278,402,154"
- Direction="{Binding PipeLine.PipeH_2.Direction}"
- LineWidth="4">
- <bpa:PipeLineH.Fill>
- <MultiBinding Converter="{StaticResource MultiBoolToColorConverter}" ConverterParameter="Lime,Red">
- <Binding Path="DeviceStatus.VX110" />
- <Binding Path="DeviceStatus.VX109" />
- </MultiBinding>
- </bpa:PipeLineH.Fill>
- </bpa:PipeLineH>
- <!--#endregion-->
-
- <!--#region 阀门13分馏真空阀-->
- <bpa:PipeLineH
- Canvas.Left="607" Canvas.Top="142" Width="140" Height="10"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="746" Canvas.Top="142" Width="20" Height="20"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20" Speed="2" />
- <bpa:PipeLineV
- Canvas.Left="756" Canvas.Top="161" Width="10" Height="150"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="750" Canvas.Top="181" Width="30" Height="25"
- OpenEnable="{Binding DeviceStatus.VX112}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <TextBlock
- Canvas.Left="780" Canvas.Top="183" FontSize="10"
- Foreground="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="分馏真空阀" />
- <!--#endregion-->
-
- <!--#region 阀门14蒸馏真空阀-->
- <bpa:PipeLineH
- Canvas.Left="619" Canvas.Top="292" Width="128" Height="10"
- Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="746" Canvas.Top="292" Width="20" Height="20"
- Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20" Speed="2" />
-
- <bpa:HandValve
- Canvas.Left="696" Canvas.Top="281" Width="30" Height="25"
- OpenEnable="{Binding DeviceStatus.VX113}" />
- <TextBlock
- Canvas.Left="682" Canvas.Top="307" HorizontalAlignment="Center" VerticalAlignment="Top"
- FontSize="10"
- Foreground="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸馏真空阀" />
-
- <!--#endregion-->
-
- <!--#region 阀门13-14连接-->
- <bpa:PipeLineV
- Canvas.Left="756" Canvas.Top="311" Width="10" Height="40"
- Direction="{Binding PipeLine.PipeH_4.Direction}"
- Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="4" />
- <bpa:PipeLineBR
- Canvas.Left="756" Canvas.Top="370" Width="20" Height="20"
- Direction="{Binding PipeLine.PipeH_4.Direction}"
- Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20" Speed="4">
- <bpa:PipeLineBR.RenderTransform>
- <ScaleTransform ScaleY="-1.0" />
- </bpa:PipeLineBR.RenderTransform>
- </bpa:PipeLineBR>
- <!--#endregion-->
-
- <!--#region 反应釜搅拌-->
- <TextBlock FontSize="10"
- Canvas.Left="203" Canvas.Top="157" HorizontalAlignment="Center" VerticalAlignment="Top"
- Foreground="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="反应釜搅拌" />
-
- <StackPanel
- Canvas.Left="200" Canvas.Top="175" Width="65" Height="220">
- <bpa:MotorTwo
- Width="40" Height="30" Margin="0,0,0,-1"
- MotorColors="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=3}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:MotorTwo.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:MotorTwo.RenderTransform>
- </bpa:MotorTwo>
- <bpa:Joint
- Width="40" Height="30" Margin="0,0,0,-3" />
- <local:RetortTank
- Width="65" Height="120" Margin="0,4,0,0" />
- <bpa:HandValve
- Width="48" Height="65" Margin="0,-24,-14,0" RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 水罐-->
- <bpa:Tanks
- Canvas.Left="570" Canvas.Top="280" Width="60" Height="60"
- Margin="0,-5,-15,0" />
- <!--#endregion-->
-
- <!--#region 真空泵-->
- <bpa:MotorTwo
- Canvas.Left="841" Canvas.Top="380" Width="40" Height="25"
- MotorColors="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=3}">
- <bpa:MotorTwo.RenderTransform>
- <RotateTransform Angle="180" />
- </bpa:MotorTwo.RenderTransform>
- </bpa:MotorTwo>
- <bpa:Joint
- Canvas.Left="817" Canvas.Top="355" Height="36">
- <bpa:Joint.RenderTransform>
- <ScaleTransform ScaleX="-1.0" />
- </bpa:Joint.RenderTransform>
- </bpa:Joint>
- <bpa:Tanks
- Canvas.Left="770" Canvas.Top="384" Width="50" Height="50" />
- <TextBlock
- Canvas.Left="775" Canvas.Top="333" FontSize="10"
- Foreground="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="分馏真空泵" />
- <!--#endregion-->
-
- <!--#region 仪器标注-->
- <TextBlock
- Canvas.Left="108" Canvas.Top="84" HorizontalAlignment="Left" VerticalAlignment="Center"
- FontSize="10" Foreground="Blue" Text="配料罐" />
- <TextBlock
- Canvas.Left="92" Canvas.Top="70" Width="60" FontSize="10"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempMaterial, StringFormat='{}{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="217" Canvas.Top="290" FontSize="10" Foreground="Blue"
- Text="反应釜" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <TextBlock
- Canvas.Left="203" Canvas.Top="260" Width="60" FontSize="10"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="572" Canvas.Top="88" FontSize="10" Foreground="Blue"
- Text="冷凝器" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <TextBlock
- Canvas.Left="389" Canvas.Top="30" Width="150" FontSize="10"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempVent, StringFormat='反应釜排气温度:{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="573" Canvas.Top="168" FontSize="10" Foreground="Blue"
- Text="蒸馏罐" HorizontalAlignment="Left" VerticalAlignment="Center" />
- <TextBlock
- Canvas.Left="589" Canvas.Top="312" FontSize="10" Foreground="Blue"
- Text="水罐" />
- <TextBlock
- Canvas.Left="570" Canvas.Top="295" Width="60" FontSize="10"
- Foreground="Red"
- Text="{Binding DeviceStatus.WeightWok, StringFormat='{}{0:f2}g'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="780" Canvas.Top="414" FontSize="10" Foreground="Blue"
- Text="真空泵" />
- <!--#endregion-->
-
- <!--#region 水罐重量清零-->
- <Button
- Canvas.Left="480" Canvas.Top="370" Width="100" Height="25"
- VerticalAlignment="Center" Click="ClearBtn_CLick" Content="水罐重量清零" FontSize="10"
- Style="{StaticResource ButtonStyle}" />
- <!--#endregion-->
-
- <!--#region 控制按钮-->
- <StackPanel
- Canvas.Left="-29" Canvas.Top="-5" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="配料釜搅拌:开" Foreground="White" GroupName="1"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="配料釜搅拌:关" Foreground="White" GroupName="1" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-5" Canvas.Top="117" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="进料阀:开" Foreground="White" GroupName="2"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="进料阀:关" Foreground="White" GroupName="2" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- </StackPanel>
- <StackPanel
- Canvas.Left="132" Canvas.Top="174" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="反应釜搅拌:开" Foreground="White" GroupName="3"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="反应釜搅拌:关" Foreground="White" GroupName="3" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- </StackPanel>
- <StackPanel
- Canvas.Left="362" Canvas.Top="107" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="蒸馏阀:开" Foreground="White" GroupName="4"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="蒸馏阀:关" Foreground="White" GroupName="4" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- </StackPanel>
- <StackPanel
- Canvas.Left="482" Canvas.Top="88" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="回油阀:开" Foreground="White" GroupName="5"
- Style="{StaticResource radiobutton}"
- Tag="5" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="回油阀:关" Foreground="White" GroupName="5" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="5" />
- </StackPanel>
- <StackPanel
- Canvas.Left="500" Canvas.Top="237" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="回水阀:开" Foreground="White" GroupName="6"
- Style="{StaticResource radiobutton}"
- Tag="6" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="回水阀:关" Foreground="White" GroupName="6" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="6" />
- </StackPanel>
- <StackPanel
- Canvas.Left="645" Canvas.Top="224" Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="汇馏阀:开" Foreground="White" GroupName="7"
- Style="{StaticResource radiobutton}"
- Tag="7" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="汇馏阀:关" Foreground="White" GroupName="7" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="7" />
- </StackPanel>
- <StackPanel
- Canvas.Left="611" Canvas.Top="368" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="排馏阀:开" Foreground="White" GroupName="8"
- Style="{StaticResource radiobutton}"
- Tag="8" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="排馏阀:关" Foreground="White" GroupName="8" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="8" />
- </StackPanel>
- <StackPanel
- Canvas.Left="607" Canvas.Top="-12" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="75" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="冷凝器冷却水阀:开" Foreground="White" GroupName="9"
- Style="{StaticResource radiobutton}"
- Tag="9" />
- <RadioButton
- Width="75" Height="22" BorderThickness="0" Click="Close_Click"
- Content="冷凝器冷却水阀:关" Foreground="White" GroupName="9" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="9" />
- </StackPanel>
- <StackPanel
- Canvas.Left="156" Canvas.Top="8" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="配料釜蒸汽阀:开" Foreground="White" GroupName="10"
- Style="{StaticResource radiobutton}"
- Tag="10" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="配料釜蒸汽阀:关" Foreground="White" GroupName="10" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="10" />
- </StackPanel>
- <StackPanel
- Canvas.Left="5" Canvas.Top="270" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="25" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="蒸汽阀:开" Foreground="White" GroupName="11"
- Style="{StaticResource radiobutton}"
- Tag="11" />
- <RadioButton
- Width="55" Height="25" BorderThickness="0" Click="Close_Click"
- Content="蒸汽阀:关" Foreground="White" GroupName="11" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="11" />
- </StackPanel>
- <StackPanel
- Canvas.Left="280" Canvas.Top="320" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="65" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="蒸汽疏水阀:开" Foreground="White" GroupName="12"
- Style="{StaticResource radiobutton}"
- Tag="12" />
- <RadioButton
- Width="65" Height="22" BorderThickness="0" Click="Close_Click"
- Content="蒸汽疏水阀:关" Foreground="White" GroupName="12" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="12" />
- </StackPanel>
- <StackPanel
- Canvas.Left="390" Canvas.Top="254" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="80" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="冷却水给水阀:开" Foreground="White"
- GroupName="13"
- Style="{StaticResource radiobutton}"
- Tag="13" />
- <RadioButton
- Width="80" Height="22" BorderThickness="0" Click="Close_Click"
- Content="冷却水给水阀:关" Foreground="White" GroupName="13"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="13" />
- </StackPanel>
- <StackPanel
- Canvas.Left="121" Canvas.Top="318" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="冷却水排水阀:开" Foreground="White" GroupName="18"
- Style="{StaticResource radiobutton}"
- Tag="18" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="冷却水排水阀:关" Foreground="White" GroupName="18" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="18" />
- </StackPanel>
- <StackPanel
- Canvas.Left="775" Canvas.Top="135" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="分馏真空阀:开" Foreground="White" GroupName="19"
- Style="{StaticResource radiobutton}"
- Tag="19" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="分馏真空阀:关" Foreground="White" GroupName="19" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="19" />
- </StackPanel>
- <StackPanel
- Canvas.Left="672" Canvas.Top="321" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="蒸馏真空阀:开" Foreground="White"
- Style="{StaticResource radiobutton}"
- Tag="20" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="蒸馏真空阀:关" Foreground="White" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="20" />
- </StackPanel>
- <StackPanel
- Canvas.Left="772" Canvas.Top="284" HorizontalAlignment="Center" VerticalAlignment="Top"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="真空泵:开" Foreground="White" GroupName="20"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="Close_Click"
- Content="真空泵:关" Foreground="White" GroupName="20" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 新增按钮-->
- <StackPanel
- Canvas.Left="254" Canvas.Top="109" HorizontalAlignment="Left" VerticalAlignment="Center"
- Orientation="Vertical">
- <RadioButton
- Width="55" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="new_Click" Content="排空阀:开" Foreground="White" GroupName="t5"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- <RadioButton
- Width="55" Height="22" BorderThickness="0" Click="new_Click"
- Content="排空阀:关" Foreground="White" GroupName="t5" IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 按钮变量反馈-->
-
- <TextBlock
- Canvas.Left="61" Canvas.Top="286" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="192" Canvas.Top="333" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜冷却水排水阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="56" Canvas.Top="131" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.进料阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="46" Canvas.Top="8" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.配料罐搅拌电机, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="229" Canvas.Top="23" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.配料釜蒸汽阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="418" Canvas.Top="122" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.蒸馏阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="204" Canvas.Top="189" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜搅拌电机, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
-
- <TextBlock
- Canvas.Left="346" Canvas.Top="335" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜蒸汽疏水阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="479" Canvas.Top="268" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜冷却水阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="556" Canvas.Top="252" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.回水阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="538" Canvas.Top="102" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.回油阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="685" Canvas.Top="3" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.冷凝器冷却阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="702" Canvas.Top="239" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.汇馏阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="848" Canvas.Top="150" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.分馏真空阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="743" Canvas.Top="336" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.蒸馏真空阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="668" Canvas.Top="384" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.排馏阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="540" Canvas.Top="350" HorizontalAlignment="Left" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.水罐重量清零, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="829" Canvas.Top="299" HorizontalAlignment="Left" VerticalAlignment="Center"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.真空泵, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="312" Canvas.Top="125" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.反应釜排空阀, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- <!--#endregion-->
- <!--#region 联动按钮-->
- <GroupBox
- Canvas.Left="809" Canvas.Top="-16" HorizontalAlignment="Center" VerticalAlignment="Top"
- Foreground="White" Header="联动按钮">
- <UniformGrid Columns="2">
- <!--#region 真空下料-->
- <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
- <StackPanel
- HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
- <RadioButton
- Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
- Click="new_Click" Content="真空下料:开" FontSize="8" Foreground="White"
- GroupName="t3"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- <RadioButton
- Width="70" Height="20" BorderThickness="0" Click="new_Click"
- Content="真空下料:关" FontSize="8" Foreground="White" GroupName="t3"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- </StackPanel>
- <TextBlock
- Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
- Foreground="{Binding DeviceStatus.真空下料, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- <!--#endregion-->
- <!--#region 闪蒸-->
- <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
- <StackPanel VerticalAlignment="Center" Orientation="Vertical">
- <RadioButton
- Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
- Click="new_Click" Content="闪蒸:开" FontSize="8" Foreground="White"
- GroupName="t1"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- <RadioButton
- Width="70" Height="20" BorderThickness="0" Click="new_Click"
- Content="闪蒸:关" FontSize="8" Foreground="White" GroupName="t1"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- </StackPanel>
- <TextBlock
- Margin="2,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" d:Foreground="Red"
- Foreground="{Binding DeviceStatus.闪蒸, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- <!--#endregion-->
- <!--#region 二次闪蒸-->
- <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
- <StackPanel
- HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
- <RadioButton
- Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
- Click="new_Click" Content="二次闪蒸:开" FontSize="8" Foreground="White"
- GroupName="t4"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- <RadioButton
- Width="70" Height="20" BorderThickness="0" Click="new_Click"
- Content="二次闪蒸:关" FontSize="8" Foreground="White" GroupName="t4"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- </StackPanel>
- <TextBlock
- Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
- Foreground="{Binding DeviceStatus.二次闪蒸, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- <!--#endregion-->
- <!--#region 真空蒸馏-->
- <StackPanel Margin="5,5,0,5" Orientation="Horizontal">
- <StackPanel VerticalAlignment="Center" Orientation="Vertical">
- <RadioButton
- Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
- Click="new_Click" Content="真空蒸馏:开" FontSize="8" Foreground="White"
- GroupName="t2"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- <RadioButton
- Width="70" Height="20" BorderThickness="0" Click="new_Click"
- Content="真空蒸馏:关" FontSize="8" Foreground="White" GroupName="t2"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- </StackPanel>
- <TextBlock
- Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red"
- Foreground="{Binding DeviceStatus.真空蒸馏, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- <!--#endregion-->
- </UniformGrid>
- </GroupBox>
- <!--#endregion-->
- </Canvas>
- </Viewbox>
- </Grid>
- <Grid>
- <Viewbox Stretch="Uniform">
- <Grid Width="1641" Height="900">
- <StackPanel
- Margin="200,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center" FontSize="20" Foreground="White" Text="请输入产品编号:" />
- <TextBox
- x:Name="recipeName" Width="200" Height="40" VerticalAlignment="Center"
- FontSize="20"
- Text="{Binding Name}" />
- </StackPanel>
- <CheckBox
- x:Name="start_check" Width="160" Height="50" HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Command="{Binding Start}"
- Content="{Binding Content}"
- FontSize="30"
- IsChecked="{Binding IsChecked}"
- Style="{StaticResource Beveledcheck}" />
-
- <Grid Margin="0,700,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- Margin="20,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20"
- Foreground="White" Text="温度控制及校准:" />
- <StackPanel
- Grid.Row="1" Margin="20,2,30,0" HorizontalAlignment="Left" VerticalAlignment="Bottom"
- Orientation="Horizontal">
- <RadioButton
- Height="40" Click="auto_click" Content="配料罐升温" GroupName="heat"
- IsChecked="True"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40" Click="auto_click" Content="反应釜升温" GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40" Click="auto_click" Content="反应釜降温" GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40" Click="auto_click" Content="温度校准" GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
-
- </StackPanel>
- <Border
- Grid.Row="2" Margin="20,0,30,10" BorderBrush="#ff2AB2E7" BorderThickness="2">
- <UniformGrid Rows="2">
- <Grid>
- <WrapPanel x:Name="materialTemp" Margin="0,15,0,0">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="设置温度:" />
- <TextBox
- x:Name="temp_1" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="℃" />
- <RadioButton FontSize="16"
- Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
- BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
- Style="{StaticResource radiobutton}" />
- <RadioButton FontSize="16"
- Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
- Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
- Style="{StaticResource radiobutton}" />
- <TextBlock
- Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
- Text="当前状态:" TextAlignment="Center" />
- <TextBlock
- HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
- Foreground="{Binding DeviceStatus.配料罐自动升温, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- </WrapPanel>
- <WrapPanel
- x:Name="wokTemp" Margin="0,15,0,0" Visibility="Collapsed">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="设置温度:" />
- <TextBox
- x:Name="temp_2" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="℃" />
- <RadioButton FontSize="16"
- Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
- BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
- Style="{StaticResource radiobutton}" />
- <RadioButton FontSize="16"
- Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
- Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
- Style="{StaticResource radiobutton}" />
- <TextBlock
- Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
- Text="当前状态:" TextAlignment="Center" />
- <TextBlock
- HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
- Foreground="{Binding DeviceStatus.反应釜自动升温, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- </WrapPanel>
- <WrapPanel
- x:Name="wokCooling" Margin="0,15,0,0" Visibility="Collapsed">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="设置温度:" />
- <TextBox
- x:Name="temp_3" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="℃" />
- <RadioButton FontSize="16"
- Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
- BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
- Style="{StaticResource radiobutton}" />
- <RadioButton FontSize="16"
- Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
- Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
- Style="{StaticResource radiobutton}" />
- <TextBlock
- Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
- Text="当前状态:" TextAlignment="Center" />
- <TextBlock
- HorizontalAlignment="Left" VerticalAlignment="Center" d:Foreground="Red" FontSize="20"
- Foreground="{Binding DeviceStatus.反应釜自动降温, Converter={StaticResource BoolToColorConverter}}"
- Text="⬛" TextAlignment="Center" />
- </StackPanel>
- </WrapPanel>
- <WrapPanel
- x:Name="caliTemp" Margin="0,15,0,0" Visibility="Collapsed">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
- Foreground="White" Text="反应釜排气温度校准:" />
- <TextBox
- x:Name="tempvent" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
- Foreground="White" Text="℃" />
- </StackPanel>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"
- Foreground="White" Text="配料罐温度校准:" />
- <TextBox
- x:Name="tempmaterial" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
- Foreground="White" Text="℃" />
- </StackPanel>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
- Foreground="White" Text="反应釜温度校准:" />
- <TextBox
- x:Name="tempwok" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14"
- Foreground="White" Text="℃" />
- </StackPanel>
- <Button
- Width="120" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
- Click="TempSet_CLick" Content="确认"
- Style="{StaticResource ButtonStyle}" />
- </WrapPanel>
- </Grid>
- </UniformGrid>
- </Border>
- </Grid>
- </Grid>
- </Viewbox>
- </Grid>
- </Grid>
-
-
-
- </Grid>
-
- <TextBlock
- x:Name="state" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="100"
- FontWeight="Black" Text="设备未连接" Visibility="Collapsed" />
-
- <Grid
- x:Name="hzSet" Width="800" Height="500" Visibility="Collapsed">
- <Grid.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
- </Grid.Background>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="5*" />
- </Grid.RowDefinitions>
- <TextBlock
- HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" Foreground="White"
- Text="设置频率" />
- <UniformGrid
- Grid.Row="1" Margin="0,0,0,40" Rows="3">
- <TextBlock
- x:Name="motorName" Margin="60,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"
- FontSize="25" Foreground="White" Text="配料搅拌频率:" />
- <StackPanel
- HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
- <TextBox
- x:Name="motorValue" Width="260" Height="46" HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" FontSize="25" Foreground="White" TextAlignment="Center" />
- <TextBlock
- Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="25"
- Foreground="White" Text="%(范围:20-100)" />
- </StackPanel>
- <StackPanel
- Margin="0,0,50,0" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">
- <Button
- Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
- Click="hzSet_Click" Content="确认"
- Style="{StaticResource ButtonStyle}" />
- <Button
- Width="120" Height="40" HorizontalAlignment="Right" VerticalAlignment="Center"
- Click="hzCancel_Click" Content="取消"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- </UniformGrid>
- </Grid>
- </Grid>
- </UserControl>
|