Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 protected virtual void OnLogsChanged(MyEventArgs e)
 {
     LogsChanged?.Invoke(this, e);
 }