示例#1
0
        public void RefreshValue()
        {
            string s = this._setvaluequerylist.GetResultWrangler()?.GetString();

            if (s != null)
            {
                //if required, remove invalid characters and truncate
                string invalchars = this.ValidationHandler.GetAllInvalidCharacters();
                if (!string.IsNullOrEmpty(invalchars))
                {
                    s = ResultValidator.RemoveInvalid(s, this.ValidationHandler.GetAllInvalidCharacters());
                }
                if (this.MaxLength > 0)
                {
                    s = ResultValidator.Truncate(s, this.MaxLength);
                }

                if (this.ControlText != s)
                {
                    this.ControlText = s;
                }
            }
        }
示例#2
0
 public string RemoveInvalidTest(string StringValue, string InvalidChars)
 {
     return(ResultValidator.RemoveInvalid(StringValue, InvalidChars));
 }