tangxu
2024-10-22 6a07c4c846ffbb1e93afdf0260e123e4c145f419
WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs
@@ -31,7 +31,11 @@
        [Browsable(false)]
        public MaterialSkinManager SkinManager => MaterialSkinManager.Instance;
        public bool Focus()
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public new bool Focus()
        {
            return baseTextBox.Focus();
        }
@@ -114,6 +118,19 @@
            }
        }
        [Category("Material"), DefaultValue(""), Localizable(true), Description("Helper text conveys additional guidance about the input field, such as how it will be used.")]
        public string NullValuePromptText
        {
            get => _nullValuePromptText;
            set
            {
                _nullValuePromptText = value;
                Invalidate();
            }
        }
        private string _nullValuePromptText;
        private string _errorMessage;
        [Category("Material"), DefaultValue(""), Localizable(true), Description("When text input isn't accepted, an error message can display instructions on how to fix it. Error messages are displayed below the input line, replacing helper text until fixed.")]