bool UpdateAccessibilityTimer() { updateAccessibilityId = 0; if (accessibles == null) { accessibles = new Dictionary <FoldSegment, FoldingAccessible> (); } foreach (var a in accessibles.Values) { Accessible.RemoveAccessibleChild(a.Accessible); a.Dispose(); } accessibles.Clear(); // Add any folds var segments = editor.Document.FoldSegments; foreach (var f in segments) { var accessible = new FoldingAccessible(f, this, editor); accessibles [f] = accessible; Accessible.AddAccessibleChild(accessible.Accessible); } return(false); }
void UpdateAccessibility() { if (!IdeTheme.AccessibilityEnabled) { return; } if (accessibles == null) { accessibles = new Dictionary <FoldSegment, FoldingAccessible> (); } foreach (var a in accessibles.Values) { Accessible.RemoveAccessibleChild(a.Accessible); a.Dispose(); } accessibles.Clear(); // Add any folds var segments = editor.Document.FoldSegments; foreach (var f in segments) { var accessible = new FoldingAccessible(f, this, editor); accessibles [f] = accessible; Accessible.AddAccessibleChild(accessible.Accessible); } }