Exemple #1
0
        protected override void Dispose(bool disposing)
        {
            this.Context.Viewer.EventBroker.DisplaySetChanged -= OnDisplaySetChanged;

            ToolRegistry.Remove(this);

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

            ToolRegistry.Remove(this);

            base.Dispose(disposing);
        }