public bool OnProcessingErrorOccurred(ProcessingErrorTypes aType, string aInformation)
        {
            if (ProcessingErrorOccurred != null)
            {
                var args = new ProcessingErrorOccurredEventArgs(aType, aInformation);
                ProcessingErrorOccurred(this, args);

                return(args.Abort);
            }

            return(false);
        }
        public bool OnProcessingErrorOccurred( ProcessingErrorTypes aType, string aInformation )
        {
            if ( ProcessingErrorOccurred != null ) {
            var args = new ProcessingErrorOccurredEventArgs( aType, aInformation );
            ProcessingErrorOccurred( this, args );

            return args.Abort;
              }

              return false;
        }
Esempio n. 3
0
        private void Importer_ProcessingErrorOccurred( object sender, ProcessingErrorOccurredEventArgs e )
        {
            LogLine( "Error: " + e.Information, MessageType.Error, false );

              var action = (ErrorActions) Settings.Default.ActionOnError;
              if ( action == ErrorActions.Ask ) {
            e.Abort = !ContinuableError( "Error: " + e.Information );
              } else
            e.Abort = (action == ErrorActions.Abort);
        }