Пример #1
0
        public bool IsEmpty(TextBoxBase textBox)
        {
            if (textBox.GetType() == typeof(MaskedTextBox))
            {
                return(!Regex.IsMatch(textBox.Text, @"\d"));
            }

            return(textBox.Text.Trim() == string.Empty);
        }