From 15bbd62b0b24b72c717ae91ab45348a2083ad04e Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 10 十月 2025 08:58:18 +0800
Subject: [PATCH] 优化bug;
---
HMI.ParameterManage/ParameterModal.xaml | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/HMI.ParameterManage/ParameterModal.xaml b/HMI.ParameterManage/ParameterModal.xaml
index 380f54a..2e316cb 100644
--- a/HMI.ParameterManage/ParameterModal.xaml
+++ b/HMI.ParameterManage/ParameterModal.xaml
@@ -33,10 +33,39 @@
<TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
</pu:FormGroup>
+ <pu:FormGroup x:Name="FgType"
+ Header="{DynamicResource Pm.Parameter.Type}"
+ dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+ <ComboBox x:Name="CbType" Style="{StaticResource FormComboxStyle}"
+ SelectionChanged="CbType_SelectionChanged"
+ SelectedValuePath="Content">
+ <ComboBoxItem>Int</ComboBoxItem>
+ <ComboBoxItem>Double</ComboBoxItem>
+ <ComboBoxItem>Bool</ComboBoxItem>
+ <ComboBoxItem>String</ComboBoxItem>
+ </ComboBox>
+ </pu:FormGroup>
+
<pu:FormGroup x:Name="FgValue" Style="{StaticResource RequiredInputFormGroupStyle}"
Header="{DynamicResource Pm.Parameter.Value}"
dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
- <TextBox x:Name="TbValue" Style="{StaticResource EditorTextBoxStyle}" />
+ <Grid>
+ <ComboBox x:Name="CbBoolValue" Style="{StaticResource FormComboxStyle}"
+ Visibility="Collapsed"
+ SelectedValuePath="Content">
+ <ComboBoxItem>True</ComboBoxItem>
+ <ComboBoxItem>False</ComboBoxItem>
+ </ComboBox>
+ <ui:NumberInput x:Name="NiNumberValue" Visibility="Collapsed" Style="{StaticResource EditorTextBoxStyle}"/>
+ <Grid x:Name="StringValueGrid">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition/>
+ <ColumnDefinition Width="Auto"/>
+ </Grid.ColumnDefinitions>
+ <TextBox x:Name="TbStringValue" Style="{StaticResource EditorTextBoxStyle}"/>
+ <Button Grid.Column="1" Click="Button_Click" Style="{StaticResource SearchButton}"/>
+ </Grid>
+ </Grid>
</pu:FormGroup>
<pu:FormGroup x:Name="FgUnit" Style="{StaticResource InputFormGroupStyle}"
--
Gitblit v1.9.1