private void WriteLog(string msg) { LogTable.BeginInvoke(new Action(() => { LogData.Add(new LogMessage { Time = DateTime.Now.ToString("dd MMM HH:mm"), Message = msg }); LogTable.Refresh(); LogTable.FirstDisplayedScrollingRowIndex = LogTable.RowCount - 1; })); }