public void DoPreloadWork() { ContentEditorProxy.ApplyInstalledCulture(); SimpleHtmlParser.Create(); BlogClientHelper.FormatUrl("", "", "", ""); ContentEditor contentEditor = new ContentEditor(null, new Panel(), null, new BlogPostHtmlEditorControl.BlogPostHtmlEditorSecurityManager(), new ContentEditorProxy.ContentEditorTemplateStrategy(), MshtmlOptions.DEFAULT_DLCTL); contentEditor.Dispose(); }
public void Dispose() { contentEditor.DocumentComplete -= new EventHandler(blogPostHtmlEditor_DocumentComplete); contentEditor.GotFocus -= new EventHandler(contentEditor_GotFocus); contentEditor.LostFocus -= new EventHandler(contentEditor_LostFocus); contentEditor.Dispose(); panel.Dispose(); accountAdapter.Dispose(); mainFrame.Dispose(); Marshal.ReleaseComObject(_contentEditorSite); _contentEditorSite = null; accountAdapter = null; contentEditor = null; panel = null; context = null; }