瀏覽代碼

RadioButton修改

HK研究所反应釜三屏显示
ZhaoGang 1 周之前
父節點
當前提交
3522c776d0
共有 6 個文件被更改,包括 116 次插入25 次删除
  1. +4
    -0
      BPASmartClient.Academy/App.xaml
  2. +1
    -0
      BPASmartClient.Academy/BPASmartClient.Academy.csproj
  3. +8
    -5
      BPASmartClient.Academy/Themes/Generic.xaml
  4. +33
    -0
      BPASmartClient.Academy/Themes/RadioButton.cs
  5. +25
    -5
      BPASmartClient.Academy/View/DeviceMotion_2View.xaml
  6. +45
    -15
      BPASmartClient.Academy/View/ReactionKettle50LView.xaml

+ 4
- 0
BPASmartClient.Academy/App.xaml 查看文件

@@ -4,6 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:con="clr-namespace:BPASmartClient.CustomResource.Converters;assembly=BPASmartClient.CustomResource"
xmlns:convert="clr-namespace:BPASmartClient.Academy.Converter"
xmlns:converters="http://schemas.superdev.ch/valueconverters/2016/xaml"
xmlns:local="clr-namespace:BPASmartClient.Academy">
<Application.Resources>
<ResourceDictionary>
@@ -47,6 +48,9 @@
<convert:MultiBoolToColorConverter x:Key="MultiBoolToColorConverter"/>
<convert:MultiBoolDeviceControl x:Key="MultiBoolDeviceControl"/>
</ResourceDictionary>
<ResourceDictionary>
<converters:BoolInverter x:Key="BoolInverterConverter"/>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>

</ResourceDictionary>


+ 1
- 0
BPASmartClient.Academy/BPASmartClient.Academy.csproj 查看文件

@@ -24,6 +24,7 @@
<PackageReference Include="LiveCharts.Wpf" Version="0.9.7" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
<PackageReference Include="OxyPlot.Wpf" Version="2.1.2" />
<PackageReference Include="ValueConverters" Version="3.1.22" />
</ItemGroup>

<ItemGroup>


+ 8
- 5
BPASmartClient.Academy/Themes/Generic.xaml 查看文件

@@ -1,13 +1,16 @@
<ResourceDictionary
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">
<Style x:Key="radiobutton" TargetType="RadioButton">
xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
xmlns:helper="clr-namespace:BPASmartClient.Academy.Themes"
>
<Style x:Key="radiobutton" TargetType="{x:Type RadioButton}">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="helper:RadioButtonHelper.ExecuteState" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border
x:Name="bord"
Width="{TemplateBinding Width}"
@@ -22,14 +25,14 @@
Foreground="{TemplateBinding Foreground}" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Trigger Property="helper:RadioButtonHelper.ExecuteState" 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">
<Trigger Property="helper:RadioButtonHelper.ExecuteState" Value="False">
<Setter TargetName="bord" Property="Background">
<Setter.Value>
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />


+ 33
- 0
BPASmartClient.Academy/Themes/RadioButton.cs 查看文件

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace BPASmartClient.Academy.Themes
{
public static class RadioButtonHelper
{


public static bool GetExecuteState(DependencyObject obj)
{
return (bool)obj.GetValue(ExecuteStateProperty);
}

public static void SetExecuteState(DependencyObject obj, bool value)
{
obj.SetValue(ExecuteStateProperty, value);
}

/// <summary>
/// 指令的执行状态。
/// </summary>
public static readonly DependencyProperty ExecuteStateProperty =
DependencyProperty.RegisterAttached("ExecuteState", typeof(bool), typeof(RadioButtonHelper), new PropertyMetadata(false));


}
}

+ 25
- 5
BPASmartClient.Academy/View/DeviceMotion_2View.xaml 查看文件

@@ -6,6 +6,7 @@
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:helper="clr-namespace:BPASmartClient.Academy.Themes"
xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel" d:DesignHeight="950" d:DesignWidth="1735"
mc:Ignorable="d">
<UserControl.Resources>
@@ -116,7 +117,7 @@
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"
Style="{StaticResource BaseHandValveStyle}" Margin="0,-5,-8,0"
EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
OpenEnable="{Binding DeviceStatus.VX100}"
RenderTransformOrigin="0.5,0.5">
@@ -388,8 +389,7 @@
<bpa:HandValve
x:Name="VX106" Canvas.Left="617" Canvas.Top="60" Width="30"
Height="20" HorizontalAlignment="Center" VerticalAlignment="Top"
OpenEnable="{Binding DeviceStatus.VX106}"
RenderTransformOrigin="0.5,0.5" />
OpenEnable="{Binding DeviceStatus.VX106}" />
<!--#endregion-->

<!--#region 阀门8 配料釜蒸汽阀-->
@@ -428,8 +428,8 @@
LineWidth="4"
Style="{StaticResource BasePipeLineVStyle}" />
<bpa:HandValve
x:Name="VX108" Canvas.Left="65" Canvas.Top="225" Width="35"
Height="35" HorizontalAlignment="Center" VerticalAlignment="Top"
x:Name="VX108" Canvas.Left="63" Canvas.Top="225" Width="35"
Height="35" HorizontalAlignment="Left" VerticalAlignment="Center"
OpenEnable="{Binding DeviceStatus.VX108}"
RenderTransformOrigin="0.5,0.5">
<bpa:HandValve.RenderTransform>
@@ -1216,12 +1216,14 @@
Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="new_Click" Content="真空下料:开" FontSize="8" Foreground="White"
GroupName="t3"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.真空下料}"
Style="{StaticResource radiobutton}"
Tag="2" />
<RadioButton
Width="70" Height="20" BorderThickness="0" Click="new_Click"
Content="真空下料:关" FontSize="8" Foreground="White" GroupName="t3"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.真空下料,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="2" />
</StackPanel>
@@ -1239,11 +1241,13 @@
Click="new_Click" Content="闪蒸:开" FontSize="8" Foreground="White"
GroupName="t1"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.闪蒸}"
Tag="0" />
<RadioButton
Width="70" Height="20" BorderThickness="0" Click="new_Click"
Content="闪蒸:关" FontSize="8" Foreground="White" GroupName="t1"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.闪蒸,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="0" />
</StackPanel>
@@ -1261,12 +1265,14 @@
Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="new_Click" Content="二次闪蒸:开" FontSize="8" Foreground="White"
GroupName="t4"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.二次闪蒸}"
Style="{StaticResource radiobutton}"
Tag="3" />
<RadioButton
Width="70" Height="20" BorderThickness="0" Click="new_Click"
Content="二次闪蒸:关" FontSize="8" Foreground="White" GroupName="t4"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.二次闪蒸,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="3" />
</StackPanel>
@@ -1283,12 +1289,14 @@
Width="70" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="new_Click" Content="真空蒸馏:开" FontSize="8" Foreground="White"
GroupName="t2"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.真空蒸馏}"
Style="{StaticResource radiobutton}"
Tag="1" />
<RadioButton
Width="70" Height="20" BorderThickness="0" Click="new_Click"
Content="真空蒸馏:关" FontSize="8" Foreground="White" GroupName="t2"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.真空蒸馏,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="1" />
</StackPanel>
@@ -1314,12 +1322,14 @@
Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
GroupName="23"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.空压机启动}"
Style="{StaticResource radiobutton}"
Tag="21" />
<RadioButton
Width="60" Height="22" BorderThickness="0" Click="Close_Click"
Content="关闭" FontSize="8" Foreground="White" GroupName="23"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.空压机启动,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="21" />
</StackPanel>
@@ -1351,12 +1361,14 @@
Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
GroupName="24"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.配料釜蒸汽输水旁通阀}"
Style="{StaticResource radiobutton}"
Tag="35" />
<RadioButton
Width="60" Height="22" BorderThickness="0" Click="Close_Click"
Content="关闭" FontSize="8" Foreground="White" GroupName="24"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.配料釜蒸汽输水旁通阀,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="35" />
</StackPanel>
@@ -1389,12 +1401,14 @@
Width="60" Height="22" Margin="0,0,0,2" BorderThickness="0"
Click="Open_Click" Content="打开" FontSize="8" Foreground="White"
GroupName="25"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜蒸汽输水旁通阀}"
Style="{StaticResource radiobutton}"
Tag="36" />
<RadioButton
Width="60" Height="22" BorderThickness="0" Click="Close_Click"
Content="关闭" FontSize="8" Foreground="White" GroupName="25"
IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜蒸汽输水旁通阀,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="36" />
</StackPanel>
@@ -1530,10 +1544,12 @@
<RadioButton
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.配料罐自动升温}"
Style="{StaticResource radiobutton}" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.配料罐自动升温,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
@@ -1559,10 +1575,12 @@
<RadioButton
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜自动升温}"
Style="{StaticResource radiobutton}" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜自动升温,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
@@ -1588,10 +1606,12 @@
<RadioButton
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜自动降温}"
Style="{StaticResource radiobutton}" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.反应釜自动降温,Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"


+ 45
- 15
BPASmartClient.Academy/View/ReactionKettle50LView.xaml 查看文件

@@ -5,6 +5,7 @@
xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
xmlns:cc="clr-namespace:BPASmartClient.Academy.CustomControls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:helper="clr-namespace:BPASmartClient.Academy.Themes"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:BPASmartClient.Academy.View"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@@ -1010,11 +1011,14 @@
<TextBlock
Canvas.Left="205" Canvas.Top="465" Canvas.Right="206.5" HorizontalAlignment="Left"
VerticalAlignment="Top" Foreground="White" Text="卤水泵" />
<cc:ValveWithCommandState MouseLeftButtonDown="Canvas_MouseDown"
Canvas.Left="394" Canvas.Top="377" Tag="反应釜压缩空气进气阀"
<cc:ValveWithCommandState
Canvas.Left="394" Canvas.Top="377" Width="35" Height="24"
HorizontalAlignment="Center" VerticalAlignment="Top"
CommandColor="{Binding DeviceStatus.IsSetReactPressureAirInValve, Converter={StaticResource BoolToColorConverter}}"
EdgeColor="{Binding DeviceStatus.ReactPressureAirInValve, ConverterParameter=2, Converter={StaticResource deviceConvert}}"
OpenEnable="{Binding DeviceStatus.ReactPressureAirInValve}" HorizontalAlignment="Center" VerticalAlignment="Top" Width="35" Height="24" />
MouseLeftButtonDown="Canvas_MouseDown"
OpenEnable="{Binding DeviceStatus.ReactPressureAirInValve}"
Tag="反应釜压缩空气进气阀" />


<Grid
@@ -1252,13 +1256,17 @@
<StackPanel
HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="99" Orientation="Vertical">
<RadioButton
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="排水启动:开" FontSize="8" Foreground="White"
Width="90" Height="20" Margin="0,0,0,2"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartEmptyWater}"
BorderThickness="0" Click="open_Click" Content="排水启动:开" FontSize="8"
Foreground="White"
Style="{StaticResource radiobutton}"
Tag="排水启动" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="排水启动:关" FontSize="8" Foreground="White" IsChecked="True"
Width="90" Height="20"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartEmptyWater, Converter={StaticResource BoolInverterConverter}}"
BorderThickness="0" Click="close_Click" Content="排水启动:关" FontSize="8"
Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
Tag="排水启动" />
</StackPanel>
@@ -1274,13 +1282,17 @@
<StackPanel
HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="99" Orientation="Vertical">
<RadioButton
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="清洗启动:开" FontSize="8" Foreground="White"
Width="90" Height="20" Margin="0,0,0,2"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartClean}"
BorderThickness="0" Click="open_Click" Content="清洗启动:开" FontSize="8"
Foreground="White"
Style="{StaticResource radiobutton}"
Tag="清洗启动按钮" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="清洗启动:关" FontSize="8" Foreground="White" IsChecked="True"
Width="90" Height="20"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartClean, Converter={StaticResource BoolInverterConverter}}"
BorderThickness="0" Click="close_Click" Content="清洗启动:关" FontSize="8"
Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
Tag="清洗启动按钮" />
</StackPanel>
@@ -1296,13 +1308,17 @@
<StackPanel
HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="99" Orientation="Vertical">
<RadioButton
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="真空蒸馏:开" FontSize="8" Foreground="White"
Width="90" Height="20" Margin="0,0,0,2"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetVacuumDistill}"
BorderThickness="0" Click="open_Click" Content="真空蒸馏:开" FontSize="8"
Foreground="White"
Style="{StaticResource radiobutton}"
Tag="真空蒸馏" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="真空蒸馏:关" FontSize="8" Foreground="White" IsChecked="True"
Width="90" Height="20"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetVacuumDistill, Converter={StaticResource BoolInverterConverter}}"
BorderThickness="0" Click="close_Click" Content="真空蒸馏:关" FontSize="8"
Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
Tag="真空蒸馏" />
</StackPanel>
@@ -1321,11 +1337,13 @@
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="反应釜回原点:开" FontSize="8" Foreground="White"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactHomeBit}"
Tag="反应釜回原点" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="反应釜回原点:关" FontSize="8" Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactHomeBit, Converter={StaticResource BoolInverterConverter}}"
Tag="反应釜回原点" />
</StackPanel>
<TextBlock
@@ -1342,11 +1360,13 @@
<RadioButton
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="反应釜去加料位:开" FontSize="8" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetGoAddPosition}"
Style="{StaticResource radiobutton}"
Tag="去加料位" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="反应釜去加料位:关" FontSize="8" Foreground="White" IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetGoAddPosition, Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="去加料位" />
</StackPanel>
@@ -1365,11 +1385,13 @@
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="反应釜去倒料位:开" FontSize="8" Foreground="White"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactOut}"
Tag="反应釜去倒料位" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="反应釜去倒料位:关" FontSize="8" Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactOut, Converter={StaticResource BoolInverterConverter}}"
Tag="反应釜去倒料位" />
</StackPanel>
<TextBlock
@@ -1387,11 +1409,13 @@
<RadioButton
Width="90" Height="20" Margin="0,0,0,2" BorderThickness="0"
Click="open_Click" Content="进卤水启动:开" FontSize="8" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartEnterBrine}"
Style="{StaticResource radiobutton}"
Tag="进卤水启动" />
<RadioButton
Width="90" Height="20" BorderThickness="0" Click="close_Click"
Content="进卤水启动:关" FontSize="8" Foreground="White" IsChecked="True"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetStartEnterBrine, Converter={StaticResource BoolInverterConverter}}"
Style="{StaticResource radiobutton}"
Tag="进卤水启动" />
</StackPanel>
@@ -1604,12 +1628,14 @@
<RadioButton
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactHeat}"
Style="{StaticResource radiobutton}"
Tag="反应釜升温" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactHeat,Converter={StaticResource BoolInverterConverter}}"
Tag="反应釜升温" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
@@ -1639,11 +1665,13 @@
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactCool}"
Tag="反应釜降温" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetReactCool,Converter={StaticResource BoolInverterConverter}}"
Tag="反应釜降温" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
@@ -1673,11 +1701,13 @@
Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center"
BorderThickness="0" Click="TempSet_CLick" Content="启动" Foreground="White"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetCWTCool}"
Tag="冷凝水罐降温" />
<RadioButton
Width="100" Height="30" Margin="40,0,0,0" BorderThickness="0"
Click="TempCLose_CLick" Content="停止" Foreground="White" IsChecked="True"
Style="{StaticResource radiobutton}"
helper:RadioButtonHelper.ExecuteState="{Binding DeviceStatus.IsSetCWTCool,Converter={StaticResource BoolInverterConverter}}"
Tag="冷凝水罐降温" />
<TextBlock
Margin="15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"


Loading…
取消
儲存