mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs
@@ -539,10 +539,18 @@
                }
                else
                {
                    int intValue = int.Parse(editText.Text.Trim());
                    if (intValue <minValue || intValue > maxValue)
                    int intValue = -1;
                    try
                    {
                        errorId_IsNullOrEmpty = Language.StringByID(StringId.setvalue).Replace("1",minValue.ToString()).Replace("000",maxValue.ToString());
                        intValue = int.Parse(editText.Text.Trim());
                    }
                    catch
                    {
                        intValue = -1;
                    }
                    if (intValue < minValue || intValue > maxValue)
                    {
                        errorId_IsNullOrEmpty = Language.StringByID(StringId.setvalue).Replace("{0}", minValue.ToString()).Replace("{1}", maxValue.ToString());
                    }
                }
                if (errorId_IsNullOrEmpty!="")
@@ -556,8 +564,8 @@
                    btnTip.X = Application.GetRealWidth(53);
                    btnTip.Y = editBjView.Bottom + Application.GetRealHeight(12);
                    btnTip.Width = Application.GetRealWidth(157);//200
                    btnTip.Height = Application.GetRealHeight(24);//17
                    btnTip.Width = Application.GetRealWidth(180);//200
                    btnTip.Height = Application.GetRealHeight(20);//17
                    btnTip.Text = errorId_IsNullOrEmpty;
                    btnTip.TextColor = CSS_Color.textRedColor;
                    btnTip.TextSize = TextSize.text12;