Exemplo n.º 1
0
        internal ErrorMargin(ITextView textView, IErrorData errorData)
        {
            _textView                            = textView;
            _errorData                           = errorData;
            _errorMarginControl                  = new ErrorMarginControl();
            _errorMarginControl.Visibility       = Visibility.Collapsed;
            _errorMarginControl.IgnoreError     += OnIgnoreError;
            _errorMarginControl.IgnoreAllErrors += OnIgnoreAllErrors;

            _errorData.ErrorThrown  += OnErrorThrown;
            _errorData.ErrorIgnored += OnErrorIgnored;
            _textView.Closed        += OnTextViewClosed;
        }
Exemplo n.º 2
0
        internal ErrorMargin(ITextView textView, IErrorData errorData)
        {
            _textView = textView;
            _errorData = errorData;
            _errorMarginControl = new ErrorMarginControl();
            _errorMarginControl.Visibility = Visibility.Collapsed;
            _errorMarginControl.IgnoreError += OnIgnoreError;
            _errorMarginControl.IgnoreAllErrors += OnIgnoreAllErrors;

            _errorData.ErrorThrown += OnErrorThrown;
            _errorData.ErrorIgnored += OnErrorIgnored;
            _textView.Closed += OnTextViewClosed;
        }