private bool ShouldValidationExceptionBeRethrown(bool ignoreWarnings, ValidationWarningException ex) { if (ignoreWarnings) { if (this.validationMessages.Contains(ex.Source)) { return(false); } return(true); } this.validationMessages.Add(ex.Source); return(true); }
private bool ProceedAfterReconciliationValidationWarning(ValidationWarningException ex) { bool?result = this.questionBox.Show("Warning", "Warning: {0}\nDo you wish to proceed?", ex.Message); return(result != null && result.Value); }
private bool ShouldValidationExceptionBeRethrown(bool ignoreWarnings, ValidationWarningException ex) { if (ignoreWarnings) { if (this.validationMessages.Contains(ex.Source)) return false; return true; } this.validationMessages.Add(ex.Source); return true; }