annotate Implab.Diagnostics.Interactive/TraceViewItem.cs @ 210:5dc21f6a3222 v2

Code review for RunnableComponent Added StaApartment class based on System.Windows.Forms.Application message loop
author cin
date Mon, 20 Mar 2017 17:44:18 +0300
parents d9d794b61bb9
children 9c32ef39b851
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
1 using System;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
2 using System.Collections.Generic;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
3 using System.Linq;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
4 using System.Text;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
5 using System.Threading.Tasks;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
6
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
7 namespace Implab.Diagnostics.Interactive {
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
8 public class TraceViewItem {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
9 string m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
10
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
11 public string Message { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
12 public int Timestamp { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
13 public int Indent { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
14 public int Thread { get; set; }
48
d9d794b61bb9 Interactive tracing
cin
parents: 47
diff changeset
15 public string Channel { get; set; }
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
16
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
17 public string FormattedMessage {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
18 get {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
19 if (m_formattedValue == null) {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
20 m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | ");
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
21 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
22 return m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
23 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
24 }
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
25 }
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
26 }