Example #1
0
 private bool isValidData()
 {
     return(Validator.IsPresent(tbUserName) && Validator.IsPresent(tbPassword) &&
            Validator.IsInt32(tbPassword) && Validator.IsCorrectLength(tbPassword, 4) &&
            Validator.StartsWithLetter(tbUserName));
 }
Example #2
0
 private bool IsValid()
 {
     return(Validator.isSelected(cboBox) && Validator.IsPresent(tbAmount) &&
            Validator.IsMoneyDecimal(tbAmount) && Validator.IsPositive(tbAmount));
 }