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); }
private bool emptyFluentCheck(RichTextStatus richText) { if ((String.IsNullOrEmpty((richText.textBox.Text)))) { return(false); } return(true); }
bool RegexControl(Regex regex, RichTextStatus textboxStatus) { return(regex.IsMatch(textboxStatus.textBox.Text)); }