Mercurial > pub > ImplabNet
diff Implab.Diagnostics.Interactive/TraceViewItem.cs @ 47:b181f7bcb259 interactive logger
refactoring, interactive tarce log almost complete
author | cin |
---|---|
date | Thu, 17 Apr 2014 18:49:36 +0400 |
parents | d10034588e38 |
children | d9d794b61bb9 |
line wrap: on
line diff
--- a/Implab.Diagnostics.Interactive/TraceViewItem.cs Thu Apr 17 08:49:24 2014 +0400 +++ b/Implab.Diagnostics.Interactive/TraceViewItem.cs Thu Apr 17 18:49:36 2014 +0400 @@ -5,10 +5,21 @@ using System.Threading.Tasks; namespace Implab.Diagnostics.Interactive { - public struct TraceViewItem { - public string message; - public int timestamp; - public int indent; - public int thread; + public class TraceViewItem { + string m_formattedValue; + + public string Message { get; set; } + public int Timestamp { get; set; } + public int Indent { get; set; } + public int Thread { get; set; } + + public string FormattedMessage { + get { + if (m_formattedValue == null) { + m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | "); + } + return m_formattedValue; + } + } } }