页面翻译,测试启动还留着。
This commit is contained in:
102
Window4.xaml
102
Window4.xaml
@@ -1,7 +1,7 @@
|
||||
<Window x:Class="ShanghaiEnvironmentalTechnology.Window4"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="单一故障气阻测试" Height="768" Width="1024"
|
||||
Title="{DynamicResource setFlow2}" Height="768" Width="1024"
|
||||
Loaded="Window_Loaded"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
<Window.Resources>
|
||||
@@ -16,7 +16,7 @@
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Height" Value="40"/>
|
||||
<Setter Property="Width" Value="120"/>
|
||||
<Setter Property="Width" Value="180"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
@@ -127,97 +127,95 @@
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0">
|
||||
<Grid Margin="20">
|
||||
<StackPanel>
|
||||
|
||||
<TextBlock Text="呼气/吸气"
|
||||
|
||||
<TextBlock Text="{DynamicResource setFlow}"
|
||||
FontSize="24"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
|
||||
|
||||
<ComboBox x:Name="CaptureModeComboBox"
|
||||
Style="{StaticResource MyComboBoxStyle}"
|
||||
HorizontalAlignment="Center"
|
||||
SelectionChanged="CaptureModeComboBox_SelectionChanged"
|
||||
Margin="0,0,0,10">
|
||||
<ComboBoxItem Content="呼吸类别" IsEnabled="False"/>
|
||||
<ComboBoxItem Content="呼气" IsSelected="True"/>
|
||||
<ComboBoxItem Content="吸气"/>
|
||||
<ComboBoxItem Content="{DynamicResource setFlow111}" IsEnabled="False"/>
|
||||
<ComboBoxItem Content="{DynamicResource setFlow1}" IsSelected="True"/>
|
||||
<ComboBoxItem Content="{DynamicResource setFlow11}"/>
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Text="单一故障气阻测试"
|
||||
<TextBlock Text="{DynamicResource setFlow2}"
|
||||
FontSize="24"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,10,0,10"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Grid Margin="10" HorizontalAlignment="Left" MinWidth="400">
|
||||
|
||||
|
||||
<Grid Margin="10" HorizontalAlignment="Left" MinWidth="400" Width="728">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="100"/>
|
||||
<ColumnDefinition Width="203"/>
|
||||
<!-- 标签列 -->
|
||||
<ColumnDefinition Width="150"/>
|
||||
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="142"/>
|
||||
|
||||
<ColumnDefinition/>
|
||||
<!-- 按钮列 -->
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" MinHeight="35"/>
|
||||
|
||||
|
||||
<RowDefinition Height="Auto" MinHeight="35"/>
|
||||
<RowDefinition Height="Auto" MinHeight="35"/>
|
||||
<RowDefinition Height="Auto" MinHeight="35"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 设置流量行 -->
|
||||
<TextBlock Grid.Row="0" Text="设置流量"
|
||||
<TextBlock Text="{DynamicResource setFlow3}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontWeight="Bold"
|
||||
FontSize="16"
|
||||
Margin="0,0,15,0"/>
|
||||
Margin="0,0,1,0" Height="20"/>
|
||||
|
||||
<StackPanel Grid.Row="0" Grid.Column="1"
|
||||
<StackPanel Grid.Column="1"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"
|
||||
Width="160">
|
||||
|
||||
Margin="0,0,196,0" Grid.ColumnSpan="2" Height="50">
|
||||
|
||||
<TextBox Name="clostTxt"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
IsReadOnly="True"
|
||||
PreviewTextInput="ClostTxt_PreviewTextInput"
|
||||
Width="80"/>
|
||||
|
||||
|
||||
<TextBlock Text="L/min"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,0,0"
|
||||
MinWidth="50"/>
|
||||
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Row="0" Grid.Column="2"
|
||||
Content="设置"
|
||||
Content="{DynamicResource setFlow4}"
|
||||
Style="{StaticResource MyButtonStyle}"
|
||||
Click="Button_Click"
|
||||
Margin="15,5"/>
|
||||
Margin="42,10,161,10"/>
|
||||
|
||||
<!-- 鼻口压力行 -->
|
||||
<TextBlock Grid.Row="1" Text="鼻口压力"
|
||||
<TextBlock Grid.Row="1" Text="{DynamicResource setFlow5}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="16"
|
||||
Margin="0,0,15,0"/>
|
||||
Margin="0,0,15,0" Height="20"/>
|
||||
|
||||
<StackPanel Grid.Row="1" Grid.Column="1"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"
|
||||
Width="160">
|
||||
Margin="0,0,196,0" Grid.ColumnSpan="2" Height="50">
|
||||
<TextBox Name="NoseTxt"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="???"
|
||||
@@ -230,23 +228,22 @@
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Row="1" Grid.Column="2"
|
||||
Content="校准"
|
||||
Content="{DynamicResource setFlow6}"
|
||||
Style="{StaticResource MyButtonStyle}"
|
||||
Click="Button_Click_1"
|
||||
Margin="15,5"/>
|
||||
Margin="42,10,161,10"/>
|
||||
|
||||
<!-- 呼流量行 -->
|
||||
<TextBlock Grid.Row="2" Text="呼流量"
|
||||
<TextBlock Grid.Row="2" Text="{DynamicResource setFlow7}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="16"
|
||||
Margin="0,0,15,0"/>
|
||||
Margin="0,0,15,0" Height="20"/>
|
||||
|
||||
<StackPanel Grid.Row="2" Grid.Column="1"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"
|
||||
Width="160">
|
||||
Margin="0,0,196,0" Grid.ColumnSpan="2" Height="50">
|
||||
<TextBox Name="outTxt"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="???"
|
||||
@@ -259,23 +256,23 @@
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Row="2" Grid.Column="2"
|
||||
Content="记录呼气阻力"
|
||||
Content="{DynamicResource setFlow8}"
|
||||
Style="{StaticResource MyButtonStyle}"
|
||||
Click="Button_Click_5"
|
||||
Margin="15,5"/>
|
||||
Width="300"
|
||||
Margin="32,10,32,10"/>
|
||||
|
||||
<!-- 吸流量行 -->
|
||||
<TextBlock Grid.Row="3" Text="吸流量"
|
||||
<TextBlock Grid.Row="3" Text="{DynamicResource setFlow9}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="16"
|
||||
Margin="0,0,15,0"/>
|
||||
Margin="0,0,15,0" Height="20"/>
|
||||
|
||||
<StackPanel Grid.Row="3" Grid.Column="1"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"
|
||||
Width="160">
|
||||
Margin="0,0,196,0" Grid.ColumnSpan="2" Height="50">
|
||||
<TextBox Name="InTxt"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="???"
|
||||
@@ -288,27 +285,28 @@
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Row="3" Grid.Column="2"
|
||||
Content="记录吸气阻力"
|
||||
Content="{DynamicResource setFlow10}"
|
||||
Style="{StaticResource MyButtonStyle}"
|
||||
Click="Button_Click_5"
|
||||
Margin="15,5"/>
|
||||
Width="NaN"
|
||||
Margin="42,10,42,10"/>
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10">
|
||||
<!-- 减少边距(原20→10) -->
|
||||
<Button Content="主页" Style="{StaticResource MyButtonStyle}" Click="Button_Click_2"/>
|
||||
<Button Name="TestStartButton" Content="测试启动" Style="{StaticResource MyButtonStyle}" Click="Button_Click_4"/>
|
||||
<Button Content="测试停止" Style="{StaticResource MyButtonStyle}" Click="Button_Click_3"/>
|
||||
<Button Content="记录画面" Style="{StaticResource MyButtonStyle}" Click="Button_Click_7"/>
|
||||
<Button Content="{DynamicResource Deformation}" Style="{StaticResource MyButtonStyle}" Click="Button_Click_2"/>
|
||||
<Button Name="TestStartButton" Content="{DynamicResource Maximumforcevaluetestresult(N)}" Style="{StaticResource MyButtonStyle}" Click="Button_Click_4"/>
|
||||
<Button Content="{DynamicResource Deformation test results}" Style="{StaticResource MyButtonStyle}" Click="Button_Click_3"/>
|
||||
<Button Content="{DynamicResource Peak force test result(N)}" Style="{StaticResource MyButtonStyle}" Click="Button_Click_7" Width="201"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,10">
|
||||
<TextBlock Text="呼气阻力" VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Margin="20 0 50 0"/>
|
||||
<TextBlock Text="{DynamicResource setFlow112}" VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Margin="20 0 50 0"/>
|
||||
<TextBox Name="saveFlowOutTxt" Style="{StaticResource MyTextBoxStyle}" Text="???" Width="120" IsEnabled="False"/>
|
||||
<TextBlock Text="pa" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
||||
<TextBlock Text="吸气阻力" VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Margin="20 0 50 0"/>
|
||||
<TextBlock Text="{DynamicResource setFlow12}" VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Margin="20 0 50 0"/>
|
||||
<TextBox Name="saveFlowInTxt" Style="{StaticResource MyTextBoxStyle}" Text="???" Width="120" IsEnabled="False"/>
|
||||
<TextBlock Text="pa" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user