Example #1
0
        public bool CheckName()
        {
            if (!AnswerValidator.IsValidText(CtrlText.Text))
            {
                CtrlErrorText.ShowError(AnswerValidator.Error);
                return(false);
            }

            CtrlErrorText.ClearError();
            return(true);
        }
Example #2
0
        bool CheckText()
        {
            if (!QuestionValidator.IsValidText(CtrlText.Text))
            {
                CtrlErrorText.ShowError(QuestionValidator.Error);
                return(false);
            }

            CtrlErrorText.ClearError();
            return(true);
        }
Example #3
0
 private void CtrlText_KeyDown(object sender, KeyEventArgs e)
 {
     CtrlErrorText.ClearError();
 }