public void AddAsync(LogBotEntry entry, Dispatcher uiDispatcher) { uiDispatcher.BeginInvoke(new Action(() => { LogEntries.Add(entry); })).Wait(); }
public void Add(LogBotEntry entry) { LogEntries.Add(entry); OnNewEntry?.Invoke(this, entry); }