alielie
2025-11-21 3a471ae651b228231bebb3a2d438baa1d4ac0261
HMI.ParameterManage/ParameterModal.xaml.cs
@@ -73,9 +73,10 @@
        private bool ValidateForm()
        {
            bool flag = FormGroupHelper.ValidateForm(formPanel, new Dictionary<string, object> {
            var cache = new Dictionary<string, object> {
                { "FgValue",GetTargetValue()}
            });
            };
            bool flag = FormGroupHelper.ValidateForm(formPanel, cache);
            if (flag)
            {
                Data.Name = TbName.Text;
@@ -106,11 +107,12 @@
        private string GetTargetValue()
        {
            if (CbType.Text == "Int" || Data.Type == "Double")
            var type = CbType.Text;
            if (type == "Int" || type == "Double")
            {
                return NiNumberValue.Text;
            }
            else if (CbType.Text == "Bool")
            else if (type == "Bool")
            {
                return CbBoolValue.Text;
            }