添加项目文件。
This commit is contained in:
50
Views/ConfigWindow.xaml
Normal file
50
Views/ConfigWindow.xaml
Normal file
@@ -0,0 +1,50 @@
|
||||
<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="450" Width="500"
|
||||
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>
|
||||
<StackPanel Grid.Row="4" 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>
|
||||
Reference in New Issue
Block a user