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

            ToolRegistry.Remove(this);

            base.Dispose(disposing);
        }
예제 #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);
        }