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