From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.ParameterManage/SettingModal.xaml | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 106 insertions(+), 0 deletions(-)
diff --git a/HMI.ParameterManage/SettingModal.xaml b/HMI.ParameterManage/SettingModal.xaml
new file mode 100644
index 0000000..1078321
--- /dev/null
+++ b/HMI.ParameterManage/SettingModal.xaml
@@ -0,0 +1,106 @@
+锘�<pu:WindowX x:Class="HMI.ParameterManage.SettingModal"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:local="clr-namespace:HMI.ParameterManage"
+ xmlns:pw="https://opensource.panuon.com/wpf"
+ xmlns:pu="https://opensource.panuon.com/wpf-ui"
+ xmlns:uic="clr-namespace:HMI.UI.Converter;assembly=HMI.UI"
+ xmlns:ui="clr-namespace:HMI.UI;assembly=HMI.UI"
+ xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
+ mc:Ignorable="d"
+ Title="Form"
+ SizeToContent="Height"
+ Width="600"
+ WindowStartupLocation="CenterOwner"
+ Style="{StaticResource ModalWindow}"
+ pu:WindowXModalDialog.OKButtonContent="{DynamicResource App.Save}">
+ <Grid Margin="10">
+ <StackPanel x:Name="formPanel">
+
+ <pu:FormGroup x:Name="FgProductName" Visibility="Collapsed"
+ Header="{DynamicResource Pm.Product.Name}"
+ dp:FormGroupHelper.IsRequired="True"
+ GroupName="MyFormGroup">
+ <TextBox x:Name="TbProductName" IsReadOnly="True" Style="{StaticResource EditorTextBoxStyle}" />
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgName"
+ dp:FormGroupHelper.ValidateMethod="ValidateName"
+ Header="{DynamicResource Pm.Parameter.Name}"
+ dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+ <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="FgIsArray" Header="IsArray" dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+ <CheckBox x:Name="CbIsArray" Checked="CbIsArray_Checked" Unchecked="CbIsArray_Checked"/>
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgLength" Visibility="Collapsed" Header="Length" dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+ <ui:NumberInput x:Name="NiLength" TextChanged="NiLength_TextChanged" Style="{StaticResource EditorTextBoxStyle}"/>
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgValue" Style="{StaticResource RequiredInputFormGroupStyle}"
+ Header="{DynamicResource Pm.Parameter.Value}"
+dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
+ <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>
+ <DataGrid Visibility="Collapsed"
+ x:Name="arrayInput" MinHeight="100" MaxHeight="200" CanUserAddRows="False" CanUserDeleteRows="False"></DataGrid>
+ </Grid>
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgUnit" Style="{StaticResource InputFormGroupStyle}"
+ Header="{DynamicResource Pm.Parameter.Unit}"
+dp:FormGroupHelper.IsRequired="False" GroupName="MyFormGroup">
+ <TextBox x:Name="TbUnit" Style="{StaticResource EditorTextBoxStyle}" />
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgDescription" Style="{StaticResource InputFormGroupStyle}"
+Header="{DynamicResource Pm.Parameter.Desc}"
+dp:FormGroupHelper.IsRequired="False" GroupName="MyFormGroup">
+ <TextBox x:Name="TbDescription" Style="{StaticResource MultilineEditorTextBoxStyle}" />
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgGroup" Style="{StaticResource InputFormGroupStyle}"
+ Header="{DynamicResource Pm.Parameter.Group}"
+ GroupName="MyFormGroup">
+ <ComboBox x:Name="TbGroup" IsEditable="True" Style="{StaticResource FormComboxStyle}"/>
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgSource" Style="{StaticResource InputFormGroupStyle}"
+Header="{DynamicResource Pm.Parameter.Source}"
+dp:FormGroupHelper.IsRequired="False" GroupName="MyFormGroup">
+ <TextBox x:Name="TbSource" Style="{StaticResource EditorTextBoxStyle}"/>
+ </pu:FormGroup>
+ </StackPanel>
+ </Grid>
+</pu:WindowX>
--
Gitblit v1.9.1