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);
        }
예제 #2
0
        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;
        }