Beispiel #1
0
        public Logger(string title, Color titleColor, FontStyle titleStyle = FontStyle.Normal)
        {
            Title      = title;
            TitleColor = titleColor;
            TitleStyle = titleStyle;

            _richTextFactory = new RichTextFluent(2048);
            TitleBacked      = _richTextFactory
                               .Style(TitleStyle).Color(TitleColor).Text(Title)
                               .ToString(true);
        }
Beispiel #2
0
        private Logger(string prefix, string title, Color titleColor, FontStyle titleStyle = FontStyle.Normal)
        {
            Title      = title;
            TitleColor = titleColor;
            TitleStyle = titleStyle;

            _richTextFactory = new RichTextFluent(2048);
            TitleBacked      = _richTextFactory
                               .UnstyledText(prefix)
                               .Style(TitleStyle).Color(TitleColor).Text(Title)
                               .ToString(true);
        }