protected override void Dispose(bool disposing) { if (_textEditor != null) { _textEditor.Dispose(); _textEditor = null; } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (disposing) { textEditorControl?.Dispose(); textEditorControl = null; textArea?.Dispose(); textArea = null; } }
void DisposeTextEditor() { if (textEditorControl == null) { return; } if (verticalSplitContainer.Panel2.Controls.Contains(textEditorControl)) { verticalSplitContainer.Panel2.Controls.Remove(textEditorControl); } if (horizontalSplitContainer != null && horizontalSplitContainer.Panel2.Controls.Contains(textEditorControl)) { horizontalSplitContainer.Panel2.Controls.Remove(textEditorControl); } textEditorControl.ActiveTextAreaControl.TextArea.DoubleClick -= TextEditorControlDoubleClick; textEditorControl.Dispose(); textEditorControl = null; }
public void TearDown() { _findAndReplaceForm.Dispose(); _textEditorControl.Dispose(); }
/// <summary> /// Cleans up all used resources /// </summary> public override void Dispose() { ParserService.ParserUpdateStepFinished -= OnParserUpdateStep; ctl.Dispose(); base.Dispose(); }
public override void Dispose() { host.Dispose(); textEditorControl.Dispose(); }
public override void Dispose() { ((Form)NetFocus.DataStructure.Gui.WorkbenchSingleton.Workbench).Activated -= new EventHandler(GotFocusEvent); textEditorControl.Dispose(); }
public void TearDownFixture() { textEditorControl.Dispose(); }
public void TearDown() { textEditor.Dispose(); }
public void TearDown() { host.Dispose(); textEditorControl.Dispose(); }
public void clear() { textBox.Dispose(); textBox = null; System.GC.SuppressFinalize(this); }