public void LogSysError(string txt, bool showToUser = false) { lock (m_sysLogger) { IEventLog log = m_sysLogger.LogEvent(txt, DateTime.Now, EventType_t.Error); SysLogAdded?.Invoke(log); } if (showToUser) { TextLogger.Error(txt); } }
public TextLogWindow() { InitializeComponent(); TextLogger.RegisterReceiver(this); }