Changeset 6946 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/LogView.cs
- Timestamp:
- 11/04/11 11:20:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/LogView.cs
r6743 r6946 69 69 #region Event Handlers 70 70 void Content_SlaveMessageLogged(object sender, EventArgs<string> e) { 71 string msg = string.Format("{0}: {1} {2}", DateTime.Now.ToString("HH:mm:ss"), e.Value, Environment.NewLine); 72 71 73 if (txtLog.InvokeRequired) { 72 txtLog.Invoke(new Action<string>(txtLog.AppendText), e.Value + Environment.NewLine);74 txtLog.Invoke(new Action<string>(txtLog.AppendText), msg); 73 75 } else { 74 txtLog.AppendText( e.Value + Environment.NewLine);76 txtLog.AppendText(msg); 75 77 } 76 78 }
Note: See TracChangeset
for help on using the changeset viewer.