public void addLogMessage(LogMessage message) { String time = message.time.Hour + ":" + message.time.Minute; switch (message.category.categoryName) { case "System Info": sysInfo.addLine(time + " - " + message.message); break; case "Errors": errorInfo.addLine(time + " - " + message.message); break; case "Debug": debugInfo.addLine(time + " - " + message.message); break; case "Video": videoInfo.addLine(time + " - " + message.message); break; } }
public void updateText(LogMessage message) { logControl.addLogMessage(message); }
public void addMessage(LogMessage message) { messages.Add(message); }