public void Append(LogEntry entry) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => LogEntries.Add(entry))); }
private static void LogAsSingleEntry(Exception ex) { var entry = new LogEntry() { DateTime = DateTime.Now, Message = "" + ex.GetType().Name + ": " + ex.Message }; _sLastCreatedLogviewer.Append(entry); }