コード例 #1
0
 /// <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);
       }
 }
コード例 #2
0
 public OptimusMiniEventLog(
     OptimusMiniEventLogType type,
     string summary,
     string description)
 {
     Time = DateTime.Now;
       Type = type;
       Summary = summary;
       Description = description;
 }