コード例 #1
0
        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);
        }
コード例 #3
0
        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;
        }