YetAnotherRelogger.Forms.Wizard.WizardMain.ValidateTextbox C# (CSharp) Method

ValidateTextbox() public method

public ValidateTextbox ( TextBox test ) : bool
test TextBox
return bool
        public bool ValidateTextbox(TextBox test)
        {
            if (test.Text.Length == 0)
            {
                test.BackColor = _invalidColor;
                return false;
            }

            test.BackColor = _validColor;
            return true;
        }

Usage Example

Esempio n. 1
0
 public bool ValidateInput()
 {
     return(WM.ValidateTextbox(textBox1) &
            WM.ValidateTextbox(textBox2) &
            WM.ValidateTextbox(textBox3) &
            WM.ValidateTextbox(textBox4)
            );
 }
All Usage Examples Of YetAnotherRelogger.Forms.Wizard.WizardMain::ValidateTextbox