Пример #1
0
 private bool IsValid()
 {
     return(Validator.isSelected(cboBox) && Validator.IsPresent(tbAmount) && Validator.IsPresent(tbTarget) &&
            Validator.IsCorrectLength(tbTarget, 8) && Validator.IsInt32(tbTarget) &&
            Validator.IsMoneyDecimal(tbAmount) && Validator.IsPositive(tbAmount) &&
            HasFunds(tbAmount) && TargetAccountExists(tbTarget) && isUniqueAccount(tbTarget));
 }
Пример #2
0
 private bool IsValid()
 {
     return(Validator.isSelected(cboBox) && Validator.IsPresent(tbAmount) &&
            Validator.IsMoneyDecimal(tbAmount) && Validator.IsPositive(tbAmount));
 }