public void CleanUp() { if (ErrorListItem != null) { _errorList.Items.Remove(ErrorListItem); _errorList.NotifyOfPropertyChange("Items"); _errorList.NotifyOfPropertyChange("FilteredItems"); _errorList.NotifyOfPropertyChange("ErrorItemCount"); _errorList.NotifyOfPropertyChange("WarningItemCount"); _errorList.NotifyOfPropertyChange("MessageItemCount"); } if (_textMarkerService != null && TextMarker != null) { _textMarkerService.Remove(TextMarker); } }