private static void UpdateDisplay(LogEntry mostRecentEntry = null) { TextDisplay = ""; DisplayedLogs.Clear(); for (int i = History.Count - 1; i >= 0; i--) { if (DisplayLogLevel <= History[i].importance) { DisplayedLogs.Add(History[i]); TextDisplay += History[i].GetMessage(); } } LogsChanged.Invoke(null, new LogsChangedEventArgs(TextDisplay, mostRecentEntry, DisplayedLogs, mostRecentEntry == null)); }
protected virtual void OnLogsChanged(MyEventArgs e) { LogsChanged?.Invoke(this, e); }