Beispiel #1
0
 /// <summary>
 /// Raises the Error event
 /// </summary>
 /// <param name="sensor">Sensor to be pased to the event</param>
 /// <param name="error">IError object containing information about the error</param>
 protected void OnError(TSensor sensor, ISensorError error)
 {
     try
     {
         if (Error != null)
         {
             Error(sensor, error);
         }
     }
     catch { }
 }
Beispiel #2
0
 /// <summary>
 /// Raises the Error event
 /// </summary>
 /// <param name="error">IError object containing information about the error</param>
 protected virtual void OnError(ISensorError error)
 {
     base.OnError(this, error);
 }