Exemple #1
0
        private bool quantityNumberFormatCheckValidation(RichTextStatus richText)
        {
            bool result = true;

            if (!RegexControl(onlyNumberCheck, richText))
            {
                if (richText.secondTextAdded == false)
                {
                    warning_messages.Add(richText.secondErrorMessage);
                    richText.secondTextAdded = true;
                }

                richText.secondError = true;
            }
            else
            {
                if (richText.secondTextAdded == true)
                {
                    warning_messages.Remove(richText.secondErrorMessage);
                    richText.secondTextAdded = false;
                }

                richText.secondError = false;
            }

            if (richText.secondError == true)
            {
                result = false;
            }

            return(result);
        }
Exemple #2
0
        private bool emptyFluentCheck(RichTextStatus richText)
        {
            if ((String.IsNullOrEmpty((richText.textBox.Text))))
            {
                return(false);
            }

            return(true);
        }
Exemple #3
0
 bool RegexControl(Regex regex, RichTextStatus textboxStatus)
 {
     return(regex.IsMatch(textboxStatus.textBox.Text));
 }