示例#1
0
        public FrameworkElement Create()
        {
            FrameworkElement warningGlyphElement = null;

            if (_warningGlyph != null)
            {
                warningGlyphElement = _warningGlyph.Create();
            }

            FrameworkElement symbolGlyphElement = null;

            if (_symbolGlyph != null)
            {
                symbolGlyphElement = _symbolGlyph.Create();
            }

            return(new QuickInfoDisplayPanel(
                       symbolGlyphElement,
                       warningGlyphElement,
                       _mainDescription.Create(),
                       _documentation.Create(),
                       _typeParameterMap.Create(),
                       _anonymousTypes.Create(),
                       _usageText.Create(),
                       _exceptionText.Create()));
        }
示例#2
0
            public object Create()
            {
                object?warningGlyph = null;

                if (_warningGlyph != null)
                {
                    warningGlyph = _warningGlyph.Create();
                }

                object?symbolGlyph = null;

                if (_symbolGlyph != null)
                {
                    symbolGlyph = _symbolGlyph.Create();
                }

                return(new QuickInfoDisplayPanel(
                           symbolGlyph as Control,
                           warningGlyph as Control,
                           (Control)_mainDescription.Create(),
                           (Control)_documentation.Create(),
                           (Control)_typeParameterMap.Create(),
                           (Control)_anonymousTypes.Create(),
                           (Control)_usageText.Create(),
                           (Control)_exceptionText.Create()));
            }
        public FrameworkElement Create()
        {
            // Workaround: Dev 12 spring update added the "GlyphCompletionWarning" group for the
            // linked files warning glyph. However, that code hasn't yet merged into VSPro_Platform
            // from VSClient_1. For now, we'll wrap the calls to IGlyphService in a try catch,
            // which will be removed when the relevant code has moved over.
            FrameworkElement warningGlyphElement = null;

            if (_warningGlyph != null)
            {
                try
                {
                    warningGlyphElement = _warningGlyph.Create();
                }
                catch (ArgumentException)
                {
                }
            }

            FrameworkElement symbolGlyphElement = null;

            if (_symbolGlyph != null)
            {
                symbolGlyphElement = _symbolGlyph.Create();
            }

            return(new QuickInfoDisplayPanel(
                       symbolGlyphElement,
                       warningGlyphElement,
                       _mainDescription.Create(),
                       _documentation.Create(),
                       _typeParameterMap.Create(),
                       _anonymousTypes.Create(),
                       _usageText.Create()));
        }
示例#4
0
            public object Create()
            {
                object warningGlyph = null;

                if (_warningGlyph != null)
                {
                    warningGlyph = _warningGlyph.Create();
                }
                object symbolGlyph = null;

                if (_symbolGlyph != null)
                {
                    symbolGlyph = _symbolGlyph.Create();
                }
                return(new QuickInfoDisplayPanel(
                           (FrameworkElement)symbolGlyph,
                           (FrameworkElement)warningGlyph,
                           (FrameworkElement)_mainDescription.Create(),
                           (FrameworkElement)_documentation.Create(),
                           (FrameworkElement)_typeParameterMap.Create(),
                           (FrameworkElement)_anonymousTypes.Create(),
                           (FrameworkElement)_usageText.Create(),
                           (FrameworkElement)_exceptionText.Create()));
            }