public override void Dispose()
 {
     base.Dispose();
     StopTimer();
     editor.Document.FoldTreeUpdated -= HandleEditorDocumentFoldTreeUpdated;
     layout = layout.Kill();
 }
示例#2
0
        public override void Dispose()
        {
            base.Dispose();
            StopTimer();
            animationStage.ActorStep -= AnimationStage_ActorStep;
            animationStage.Exeunt();
            editor.TextArea.MouseHover      -= TextArea_MouseHover;
            editor.TextArea.MouseLeft       -= TextArea_MouseLeft;
            editor.Caret.PositionChanged    -= HandleEditorCaretPositionChanged;
            editor.Caret.PositionChanged    -= EditorCarethandlePositionChanged;
            editor.Document.FoldTreeUpdated -= HandleEditorDocumentFoldTreeUpdated;
            layout   = layout.Kill();
            foldings = null;
            drawer   = null;

            if (updateAccessibilityId > 0)
            {
                GLib.Source.Remove(updateAccessibilityId);
                updateAccessibilityId = 0;
            }

            if (accessibles != null)
            {
                foreach (var a in accessibles.Values)
                {
                    Accessible.RemoveAccessibleChild(a.Accessible);
                    a.Dispose();
                }
                accessibles.Clear();
            }
        }
示例#3
0
 public override void Dispose()
 {
     base.Dispose();
     StopTimer();
     editor.Document.FoldTreeUpdated -= HandleEditorDocumentFoldTreeUpdated;
     layout        = layout.Kill();
     foldings      = null;
     startFoldings = containingFoldings = endFoldings = null;
 }
 public override void Dispose()
 {
     base.Dispose();
     if (delayTimer != null)
     {
         delayTimer.Stop();
         delayTimer.Dispose();
         delayTimer = null;
     }
     layout = layout.Kill();
     DisposeGCs();
 }
示例#5
0
 public override void Dispose()
 {
     base.Dispose();
     editor.Document.FoldTreeUpdated -= HandleEditorDocumentFoldTreeUpdated;
     if (delayTimer != null)
     {
         delayTimer.Stop();
         delayTimer.Dispose();
         delayTimer = null;
     }
     layout = layout.Kill();
 }
 protected override void OnDestroyed()
 {
     layout          = layout.Kill();
     informLayout    = informLayout.Kill();
     fontDescription = fontDescription.Kill();
     if (textGC != null)
     {
         textGC.Dispose();
         textBgGC.Dispose();
         foldGC.Dispose();
         foldBgGC.Dispose();
         textGC = textBgGC = foldGC = foldBgGC = null;
     }
     base.OnDestroyed();
 }
        public override void Dispose()
        {
            if (base.cursor == null)
            {
                return;
            }

            base.cursor.Dispose();
            base.cursor = null;

            this.editor.Document.TextSet     -= HandleEditorDocumenthandleTextSet;
            this.editor.Document.LineChanged -= UpdateWidth;
            layout = layout.Kill();
            DisposeGCs();
            base.Dispose();
        }
示例#8
0
        public override void Dispose()
        {
            base.Dispose();
            StopTimer();
            editor.Caret.PositionChanged    -= HandleEditorCaretPositionChanged;
            editor.Caret.PositionChanged    -= EditorCarethandlePositionChanged;
            editor.Document.FoldTreeUpdated -= HandleEditorDocumentFoldTreeUpdated;
            layout        = layout.Kill();
            foldings      = null;
            startFoldings = containingFoldings = endFoldings = null;

            if (accessibles != null)
            {
                foreach (var a in accessibles.Values)
                {
                    Accessible.RemoveAccessibleChild(a.Accessible);
                    a.Dispose();
                }
                accessibles.Clear();
            }
        }
示例#9
0
 public override void Dispose()
 {
     layout = layout.Kill();
 }