コード例 #1
0
 protected virtual void DisposeTextEditor(CodeEditorView textEditor)
 {
     foreach (var d in textEditor.TextArea.LeftMargins.OfType <IDisposable>())
     {
         d.Dispose();
     }
     textEditor.Dispose();
 }
コード例 #2
0
        protected virtual void DisposeTextEditor(CodeEditorView textEditor)
        {
            foreach (var d in textEditor.TextArea.LeftMargins.OfType <IDisposable>())
            {
                d.Dispose();
            }
            textEditor.TextArea.GetRequiredService <EnhancedScrollBar>().Dispose();
            var highlighter = textEditor.TextArea.GetService <IHighlighter>();

            if (highlighter != null)
            {
                highlighter.Dispose();
            }
            textEditor.Dispose();
        }
コード例 #3
0
		protected virtual void DisposeTextEditor(CodeEditorView textEditor)
		{
			foreach (var d in textEditor.TextArea.LeftMargins.OfType<IDisposable>())
				d.Dispose();
			textEditor.Dispose();
		}
コード例 #4
0
ファイル: CodeEditor.cs プロジェクト: ichengzi/SharpDevelop
		protected virtual void DisposeTextEditor(CodeEditorView textEditor)
		{
			foreach (var d in textEditor.TextArea.LeftMargins.OfType<IDisposable>())
				d.Dispose();
			textEditor.TextArea.GetRequiredService<EnhancedScrollBar>().Dispose();
			var highlighter = textEditor.TextArea.GetService<IHighlighter>();
			if (highlighter != null)
				highlighter.Dispose();
			textEditor.Dispose();
		}