Ejemplo n.º 1
0
        public virtual void OnAlarmSelectionChanged(MessageSelectionEventArgs e)
        {
            EventHandler <MessageSelectionEventArgs> handler = AlarmSelectionChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        private void ColumnOnAlarmSelectionChanged(object sender, MessageSelectionEventArgs eventArgs)
        {
            if (eventArgs.ChangeAll && IsEnabled)
            {
                if (_column.AllAlarm1)
                {
                    _data.BroadcastMessage = BroadCastMessage.Alarm1;
                }
                else if (_column.AllAlarm2)
                {
                    _data.BroadcastMessage = BroadCastMessage.Alarm2;
                }
                else
                {
                    _data.BroadcastMessage = BroadCastMessage.None;
                }
            }

            RaisePropertyChanged(() => Alarm);
            RaisePropertyChanged(() => Alert);
        }