예제 #1
0
        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;
            }
        }
예제 #2
0
 public void updateText(LogMessage message)
 {
     logControl.addLogMessage(message);
 }
예제 #3
0
 public void addMessage(LogMessage message)
 {
     messages.Add(message);
 }