Exemple #1
0
 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();
 }
Exemple #5
0
 /// <summary>
 /// Cleans up all used resources
 /// </summary>
 public override void Dispose()
 {
     ParserService.ParserUpdateStepFinished -= OnParserUpdateStep;
     ctl.Dispose();
     base.Dispose();
 }
Exemple #6
0
 public override void Dispose()
 {
     host.Dispose();
     textEditorControl.Dispose();
 }
Exemple #7
0
 public override void Dispose()
 {
     ((Form)NetFocus.DataStructure.Gui.WorkbenchSingleton.Workbench).Activated -= new EventHandler(GotFocusEvent);
     textEditorControl.Dispose();
 }
 public void TearDownFixture()
 {
     textEditorControl.Dispose();
 }
Exemple #9
0
 public void TearDown()
 {
     textEditor.Dispose();
 }
 public void TearDown()
 {
     host.Dispose();
     textEditorControl.Dispose();
 }
Exemple #11
0
 public void clear()
 {
     textBox.Dispose();
     textBox = null;
     System.GC.SuppressFinalize(this);
 }