public override void DestroyControlPane(Control pane) { ns.mainPan.onClosing(null); pane.Dispose(); } }