void TagAggregator_BatchedTagsChanged(object sender, HexBatchedTagsChangedEventArgs e) { canvas.Dispatcher.VerifyAccess(); HashSet<HexViewLine> checkedLines = null; foreach (var span in e.Spans) Update(span, ref checkedLines); }
void TagAggregator_BatchedTagsChanged(object sender, HexBatchedTagsChangedEventArgs e) { if (wpfHexView.IsClosed) return; wpfHexView.VisualElement.Dispatcher.VerifyAccess(); List<HexBufferSpan> intersectionSpans = null; foreach (var span in e.Spans) { var intersection = wpfHexView.HexViewLines.FormattedSpan.Intersection(span); if (intersection != null) { if (intersectionSpans == null) intersectionSpans = new List<HexBufferSpan>(); intersectionSpans.Add(intersection.Value); } } if (intersectionSpans != null) UpdateRange(new NormalizedHexBufferSpanCollection(intersectionSpans)); }