protected override void OnClosed(EventArgs e) { base.OnClosed(e); if (null != textEditorControl) { textEditorControl.ReleaseThreads(); textEditorControl.Shutdown(); } }