private void OnAlarmMessageReceived(AlarmMessageReceivedEventArgs e)
 {
     EventHandler<AlarmMessageReceivedEventArgs> alarmMessageRecieved = AlarmMessageReceived;
     if (alarmMessageRecieved != null)
     {
         alarmMessageRecieved(this, e);
     }
 }
예제 #2
0
        // Define what actions to take when the event is raised.
        private void ProcessAlarmMessage(object sender, AlarmMessageReceivedEventArgs e)
        {
            Alarm alarm = e.AlarmMessage.ConvertToAlarm(_timeZone(), _culture);

            OnUpdateReceived(new AlarmReceivedEventArgs(alarm));
        }