internal void RaiseNotification(OptimusMiniEventLog notification)
 {
     if (OnNotification != null)
     {
         OnNotification(this, notification);
     }
 }
 /// <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);
       }
 }
        /// <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);
            }
        }
Пример #4
0
 static void _Device_OnNotification(OptimusMiniController sender, OptimusMiniEventLog notification)
 {
     ShowErrorNotification(notification.Summary);
 }