public void AddLogMessage(LogMessage logMessage) { _logMessages.Add(logMessage); if (NewLogMessageEvent != null) { NewLogMessageEvent(this,new LogMessageEventArgs(logMessage)); } }
public LogMessageEventArgs(LogMessage logMessage) { LogMessage = logMessage; }