Beispiel #1
0
        //function to test if the data in first form is valid
        private bool IsValid()
        {
            return
                (Validator.IsFill(txtAccount) &&
                 Validator.IsFill(txtPassword) &&

                 Validator.IsUserName(txtAccount) &&
                 Validator.IsDigit(txtPassword) &&
                 Validator.IsAllowedNumberCharacters(txtPassword, 4));
        }