protected override void Dispose(bool disposing) { this.Context.Viewer.EventBroker.DisplaySetChanged -= OnDisplaySetChanged; ToolRegistry.Remove(this); base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (Layout.Basic.ShowHideOverlaysTool.LegacyMode) { this.Context.Viewer.EventBroker.DisplaySetChanged -= OnDisplaySetChanged; } ToolRegistry.Remove(this); base.Dispose(disposing); }