public void TextViewCreated(IWpfTextView textView) { ITextDocument document; if (TextDocumentFactoryService.TryGetTextDocument(textView.TextDataModel.DocumentBuffer, out document)) { string fileName = Path.GetFileName(document.FilePath).ToLowerInvariant(); if (string.IsNullOrEmpty(fileName) || !_map.ContainsKey(fileName)) return; bool isVisible = WESettings.Instance.General.ShowLogoWatermark; LogoAdornment highlighter = new LogoAdornment(textView, _map[fileName], isVisible, _initOpacity); } }
public void TextViewCreated(IWpfTextView textView) { ITextDocument document; if (TextDocumentFactoryService.TryGetTextDocument(textView.TextDataModel.DocumentBuffer, out document)) { string fileName = Path.GetFileName(document.FilePath).ToLowerInvariant(); if (string.IsNullOrEmpty(fileName) || !_map.ContainsKey(fileName)) { return; } bool isVisible = WESettings.Instance.General.ShowLogoWatermark; LogoAdornment highlighter = new LogoAdornment(textView, _map[fileName], isVisible, _initOpacity); } }