Пример #1
0
        void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
        {
            if (wpfHexView.IsClosed)
            {
                return;
            }

            bool refresh = false;

            if (e.ChangedItems.Count > 50)
            {
                refresh = true;
            }
            if (!refresh)
            {
                var hash = new HashSet <string>(StringComparer.Ordinal);
                foreach (var name in classificationTypeNames)
                {
                    hash.Add(name);
                }
                foreach (var s in e.ChangedItems)
                {
                    if (hash.Contains(s))
                    {
                        refresh = true;
                        break;
                    }
                }
            }

            if (refresh)
            {
                DelayRecreateColumnLines();
            }
        }
Пример #2
0
        void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
        {
            if (markerElements.Count == 0)
            {
                return;
            }

            bool refresh = false;

            if (e.ChangedItems.Count > 50)
            {
                refresh = true;
            }
            if (!refresh)
            {
                var hash = new HashSet <string>(StringComparer.Ordinal);
                foreach (var elem in markerElements)
                {
                    hash.Add(elem.Type);
                }
                foreach (var s in e.ChangedItems)
                {
                    if (hash.Contains(s))
                    {
                        refresh = true;
                        break;
                    }
                }
            }

            if (refresh)
            {
                RefreshExistingMarkers();
            }
        }
Пример #3
0
 void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
 {
     if (e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexGlyphMargin))
     {
         UpdateBackground();
     }
 }
Пример #4
0
 void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
 {
     if ((IsActive && e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexSelection)) ||
         (!IsActive && e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexInactiveSelectedText)))
     {
         UpdateBackgroundBrush();
     }
 }
Пример #5
0
 void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
 {
     if ((isActive && e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexCurrentLine)) ||
         (!isActive && e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexCurrentLineNoFocus)))
     {
         UpdateLineElementBrushes();
     }
 }
Пример #6
0
        void EditorFormatMap_FormatMappingChanged(object sender, VSTC.FormatItemsEventArgs e)
        {
            if (wpfHexView.IsClosed)
            {
                return;
            }
            bool refresh = e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexHighlightedValuesColumn) ||
                           e.ChangedItems.Contains(CTC.ThemeClassificationTypeNameKeys.HexHighlightedAsciiColumn);

            if (refresh)
            {
                DelayRecreateRectangles();
            }
        }