void HexView_Closed(object sender, EventArgs e) { Debug.Assert(hexView.Properties.ContainsProperty(typeof(HexAndAdornmentSequencer))); hexView.Properties.RemoveProperty(typeof(HexAndAdornmentSequencer)); hexView.Closed -= HexView_Closed; hexTagAggregator.TagsChanged -= HexTagAggregator_TagsChanged; hexTagAggregator.Dispose(); }
void WpfHexView_Closed(object sender, EventArgs e) { wpfHexView.Closed -= WpfHexView_Closed; wpfHexView.LayoutChanged -= WpfHexView_LayoutChanged; wpfHexView.Selection.SelectionChanged -= Selection_SelectionChanged; tagAggregator.TagsChanged -= TagAggregator_TagsChanged; tagAggregator.Dispose(); adornmentTagInfos.Clear(); layer?.RemoveAllAdornments(); }
protected override void DisposeCore() { wpfHexViewHost.HexView.Options.OptionChanged -= Options_OptionChanged; wpfHexViewHost.HexView.ZoomLevelChanged -= HexView_ZoomLevelChanged; canvas.IsVisibleChanged -= GlyphMargin_IsVisibleChanged; UnregisterEvents(); lineInfos?.Clear(); iconCanvas?.Children.Clear(); mouseProcessorCollection?.Dispose(); tagAggregator?.Dispose(); }
void HexView_Closed(object sender, EventArgs e) { hexView.Closed -= HexView_Closed; hexView.Options.OptionChanged -= Options_OptionChanged; tagAggregator.Dispose(); }
protected override void DisposeCore() { hexTagAggregator.TagsChanged -= HexTagAggregator_TagsChanged; hexTagAggregator.Dispose(); }