77 lines
3.8 KiB
XML
77 lines
3.8 KiB
XML
<Window x:Class="AciTester.Views.ConfigWindow"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
Title="参数校准配置 - Ctrl+P" Height="550" Width="520"
|
||
WindowStartupLocation="CenterOwner">
|
||
<Grid Margin="10">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
|
||
<!-- 流量校准 -->
|
||
<GroupBox Header="流量校准" Grid.Row="0">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="流量系数:" Width="80" VerticalAlignment="Center"/>
|
||
<TextBox Text="{Binding Calibration.FlowCalibration}" Width="100"/>
|
||
<TextBlock Text=" 保护低限:" Margin="20,0,0,0"/>
|
||
<TextBox Text="{Binding Calibration.FlowLowLimit}" Width="80"/>
|
||
<TextBlock Text="高限:" Margin="5,0,0,0"/>
|
||
<TextBox Text="{Binding Calibration.FlowHighLimit}" Width="80"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 温度校准 -->
|
||
<GroupBox Header="温度校准" Grid.Row="1" Margin="0,10">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="温度系数:" Width="80"/>
|
||
<TextBox Text="{Binding Calibration.TemperatureCalibration}" Width="100"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 压力校准(泵端) -->
|
||
<GroupBox Header="压力校准(泵端)" Grid.Row="2">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="泵端压力系数:" Width="120"/>
|
||
<TextBox Text="{Binding Calibration.PumpPressureCalibration}" Width="100"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 压力校准(撞击器端) -->
|
||
<GroupBox Header="压力校准(撞击器端)" Grid.Row="3" Margin="0,10">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="撞击器端压力系数:" Width="140"/>
|
||
<TextBox Text="{Binding Calibration.ImpactorPressureCalibration}" Width="100"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 温度保护 -->
|
||
<GroupBox Header="温度保护" Grid.Row="4" Margin="0,10">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="温度保护值(℃):" Width="120"/>
|
||
<TextBox Text="{Binding Calibration.TemperatureProtect}" Width="100"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 校准开关(新增) -->
|
||
<GroupBox Header="校准开关" Grid.Row="5" Margin="0,10">
|
||
<StackPanel>
|
||
<CheckBox IsChecked="{Binding Calibration.FlowCalibrationEnabled}" Content="流量校准 (M1300)" Margin="5"/>
|
||
<CheckBox IsChecked="{Binding Calibration.PumpPressureCalibrationEnabled}" Content="压力校准负压泵端 (M1302)" Margin="5"/>
|
||
<CheckBox IsChecked="{Binding Calibration.ImpactorPressureCalibrationEnabled}" Content="压力校准撞击器端 (M1303)" Margin="5"/>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
|
||
<!-- 按钮区域(原 Grid.Row="4" 调整为 Row="6") -->
|
||
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10">
|
||
<Button Command="{Binding LoadConfigCommand}" Content="读取" Width="80" Margin="5"/>
|
||
<Button Command="{Binding SaveConfigCommand}" Content="保存" Width="80" Margin="5"/>
|
||
<Button Click="CloseWindow" Content="关闭" Width="80" Margin="5"/>
|
||
</StackPanel>
|
||
</Grid>
|
||
</Window> |