Example #1
0
 void ShowLogItem(LogEntity log)
 {
     AppendContent(GetParagraphForLog(log));
     if (_logViewModel.IsAutoScrollToEnd)
     {
         RichTextBoxLogs.ScrollToEnd();
     }
 }
Example #2
0
 void ShowLog(string log)
 {
     AppendContent(new Paragraph(new Run(log))
     {
         Tag = DateTime.Now
     });
     if (_logViewModel.IsAutoScrollToEnd)
     {
         RichTextBoxLogs.ScrollToEnd();
     }
 }