| | |
| | | xmlns:pw="https://opensource.panuon.com/wpf" |
| | | xmlns:pu="https://opensource.panuon.com/wpf-ui" |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI" |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | | FontSize="10" |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | | <UserControl.Resources> |
| | | <Style x:Key="ovenTb" TargetType="TextBox" BasedOn="{StaticResource EditorTextBoxStyle}"> |
| | | <Setter Property="Height" Value="20"/> |
| | |
| | | </Style> |
| | | </UserControl.Resources> |
| | | |
| | | <GroupBox Header="{Binding Header}"> |
| | | <GroupBox Header="{Binding Header}" Background="#FFF" > |
| | | <Grid dp:GridHelper.Space="5" dp:GridHelper.SpaceIgnore="ALL"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | |
| | | |
| | | <pu:Switch CheckedContent="照明开" x:Name="lightSw" |
| | | CheckedBackground="Green" |
| | | Background="{StaticResource DangerColor}" |
| | | BoxHeight="14" |
| | | Background="{DynamicResource DangerColor}" |
| | | IsChecked="{Binding LightStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
| | | Content="照明关"/> |
| | | |
| | | <Button Background="{StaticResource PrimaryColor}" Foreground="{StaticResource PrimaryColorContract}" |
| | | Click="Button_Click" |
| | | Tag="0" |
| | | Content="停止等待"/> |
| | | <Button Background="{StaticResource DangerColor}" Foreground="{StaticResource DangerColorContrast}" |
| | | Click="Button_Click" |
| | | Tag="1" |
| | | Content="加热启动"/> |
| | | <Button Background="{StaticResource SuccessColor}" Foreground="{StaticResource SuccessColorContrast}" |
| | | Click="Button_Click" |
| | | Tag="2" |
| | | Content="冷却启动"/> |
| | | <Button Background="{DynamicResource PrimaryColor}" Foreground="{DynamicResource PrimaryColorContract}" |
| | | Click="Button_Click" Tag="0" Content="停止等待"/> |
| | | <Button Background="{DynamicResource DangerColor}" Foreground="{DynamicResource DangerColorContrast}" |
| | | Click="Button_Click" Tag="1" Content="加热启动"/> |
| | | <Button Background="{DynamicResource SuccessColor}" Foreground="{DynamicResource SuccessColorContrast}" |
| | | Click="Button_Click" Tag="2" Content="冷却启动"/> |
| | | |
| | | <pu:FormGroup Header="水冷机状态"> |
| | | <TextBox Style="{StaticResource ovenTb}" IsReadOnly="True" Text="{Binding CoolerStatus}"/> |
| | | </pu:FormGroup> |
| | | <Button Background="{DynamicResource PrimaryColor}" Foreground="{DynamicResource PrimaryColorContract}" |
| | | Click="Button_Click2" Tag="1" Content="运水"/> |
| | | <Button Background="{DynamicResource PrimaryColor}" Foreground="{DynamicResource DangerColorContrast}" |
| | | Click="Button_Click2" Tag="2" Content="吹水"/> |
| | | <Button Background="{DynamicResource PrimaryColor}" Foreground="{DynamicResource SuccessColorContrast}" |
| | | Click="Button_Click2" Tag="3" Content="测压"/> |
| | | <Button Background="{DynamicResource DangerColor}" Foreground="{DynamicResource SuccessColorContrast}" |
| | | Click="Button_Click2" Tag="0" Content="停止"/> |
| | | </StackPanel> |
| | | |
| | | <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" dp:StackPanelHelper.ChildSpace="5"> |