コード例 #1
0
 public override void WriteLine(string message)
 {
     if (_lastMessage == null)
     {
         AddMessageToCollectionOfMessages(new TraceMessageViewModel(message));
     }
     else
     {
         _lastMessage.Message += message;
         _lastMessage          = null;
     }
 }
コード例 #2
0
 void AddMessageToCollectionOfMessages(TraceMessageViewModel message)
 {
     _dispatcher.Invoke(() => Messages.Insert(0, message));
 }