Beispiel #1
0
 /// <summary>
 /// Catches events for feedbacks on the base class.  Any extending wrapper class should call this delegate after it checks for it's own event IDs.
 /// </summary>
 /// <param name="device"></param>
 /// <param name="args"></param>
 protected virtual void OccSensor_CenOccupancySensorChange(object device, GenericEventArgs args)
 {
     if (args.EventId == GlsOccupancySensorBase.PirEnabledFeedbackEventId)
     {
         PirSensorEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.LedFlashEnabledFeedbackEventId)
     {
         LedFlashEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.ShortTimeoutEnabledFeedbackEventId)
     {
         ShortTimeoutEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.PirSensitivityInOccupiedStateFeedbackEventId)
     {
         PirSensitivityInOccupiedStateFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.PirSensitivityInVacantStateFeedbackEventId)
     {
         PirSensitivityInVacantStateFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.RawOccupancyPirFeedbackEventId)
     {
         RawOccupancyPirFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.RawOccupancyUsFeedbackEventId)
     {
         RawOccupancyUsFeedback.FireUpdate();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Catches events for feedbacks on the base class.  Any extending wrapper class should call this delegate after it checks for it's own event IDs.
 /// </summary>
 /// <param name="device"></param>
 /// <param name="args"></param>
 protected virtual void OccSensor_GlsOccupancySensorChange(GlsOccupancySensorBase device, GlsOccupancySensorChangeEventArgs args)
 {
     if (args.EventId == GlsOccupancySensorBase.PirEnabledFeedbackEventId)
     {
         PirSensorEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.LedFlashEnabledFeedbackEventId)
     {
         LedFlashEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.ShortTimeoutEnabledFeedbackEventId)
     {
         ShortTimeoutEnabledFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.PirSensitivityInOccupiedStateFeedbackEventId)
     {
         PirSensitivityInOccupiedStateFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.PirSensitivityInVacantStateFeedbackEventId)
     {
         PirSensitivityInVacantStateFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.TimeoutFeedbackEventId)
     {
         CurrentTimeoutFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.TimeoutLocalFeedbackEventId)
     {
         LocalTimoutFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.GraceOccupancyDetectedFeedbackEventId)
     {
         GraceOccupancyDetectedFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.RawOccupancyFeedbackEventId)
     {
         RawOccupancyFeedback.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.InternalPhotoSensorValueFeedbackEventId)
     {
         InternalPhotoSensorValue.FireUpdate();
     }
     else if (args.EventId == GlsOccupancySensorBase.ExternalPhotoSensorValueFeedbackEventId)
     {
         ExternalPhotoSensorValue.FireUpdate();
     }
 }