Example #1
0
        /// <summary>
        /// 移除按键监听事件。
        /// </summary>
        /// <param name="event"></param>
        public void Remove(INotificationMonitorEvent @event)
        {
            if (@event == null)
            {
                return;
            }

            _notificationMonitorEvent.Remove(@event);
        }
Example #2
0
        /// <summary>
        /// 添加按键监听事件。
        /// </summary>
        /// <param name="event"></param>
        public void Add(INotificationMonitorEvent @event)
        {
            if (@event == null)
            {
                return;
            }

            _notificationMonitorEvent.Add(@event);
        }