Exemplo n.º 1
0
        public InlineMessage(InlineSeverity severity, params object[] inlines)
        {
            Severity = severity;

            Message = new TextBlock();
            Message.TextWrapping = TextWrapping.WrapWithOverflow;
            Message.Inlines.AddRange(from inline in inlines
                                     select inline is Inline ? inline : new Run(inline.ToString()));
        }
Exemplo n.º 2
0
        private static int GetSeverityIconID(InlineSeverity severity)
        {
            switch (severity)
            {
            case InlineSeverity.Information: return(79);

            case InlineSeverity.Warning: return(78);

            case InlineSeverity.Error: return(80);

            default: return(-1);
            }
        }