/// <summary> /// Adds an event to the log and notifies the user about it. /// </summary> /// <param name="type">Severity of event.</param> /// <param name="summary">Short summary of what happened.</param> /// <param name="description">Description of what happened.</param> public void LogEvent(OptimusMiniEventLogType type, string summary, string description) { OptimusMiniEventLog lItem = new OptimusMiniEventLog(type, summary, description); lock (_EventLog) { _EventLog.Add(lItem); } }
public OptimusMiniEventLog( OptimusMiniEventLogType type, string summary, string description) { Time = DateTime.Now; Type = type; Summary = summary; Description = description; }