89 lines
4.6 KiB
XML
89 lines
4.6 KiB
XML
<Window x:Class="TabletTester2025.SettingsWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="参数设置 - 中国药典2025"
|
|
Width="1024" MinHeight="768" WindowState="Maximized"
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
ResizeMode="CanResize" Background="#F5F5F5">
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="药典参数设置" FontSize="20" FontWeight="Bold" Margin="0,0,0,20" HorizontalAlignment="Center"/>
|
|
|
|
<!-- 硬度 -->
|
|
<GroupBox Header="硬度测试" Grid.Row="1" Margin="0,5">
|
|
<Grid Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="下限(N):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="HardnessMinBox" Grid.Row="0" Grid.Column="1" Margin="5" Text="40"/>
|
|
<TextBlock Text="上限(N):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="HardnessMaxBox" Grid.Row="1" Grid.Column="1" Margin="5" Text="60"/>
|
|
<TextBlock Text="测试次数:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="HardnessCountBox" Grid.Row="2" Grid.Column="1" Margin="5" Text="6"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- 脆碎度 -->
|
|
<GroupBox Header="脆碎度" Grid.Row="2" Margin="0,5">
|
|
<Grid Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="最大失重率(%):" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="FriabilityMaxLossBox" Grid.Column="1" Margin="5" Text="1.0"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- 崩解时限 -->
|
|
<GroupBox Header="崩解时限" Grid.Row="3" Margin="0,5">
|
|
<Grid Margin="10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="最长崩解时间(秒):" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="DisintegrationMaxSecBox" Grid.Column="1" Margin="5" Text="900"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- 溶出度 -->
|
|
<GroupBox Header="溶出度" Grid.Row="4" Margin="0,5">
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="30分钟最低溶出度(%):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="DissolutionMinPercentBox" Grid.Row="0" Grid.Column="1" Margin="5" Text="80.0"/>
|
|
<TextBlock Text="取样时间点(分钟,逗号分隔):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,5,0,0"/>
|
|
<TextBox x:Name="SampleTimesBox" Grid.Row="1" Grid.Column="1" Margin="5" Text="5,10,15,30,45,60"/>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- 按钮 -->
|
|
<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,20">
|
|
<Button x:Name="SaveButton" Content="保存" Width="80" Height="30" Margin="5" Click="SaveButton_Click" Background="#2196F3" Foreground="White" BorderThickness="0"/>
|
|
<Button x:Name="CancelButton" Content="取消" Width="80" Height="30" Margin="5" Click="CancelButton_Click" Background="#9E9E9E" Foreground="White" BorderThickness="0"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window> |