예제 #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();
            }
        }