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

            _keyMonitorEvents.Remove(@event);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加按键监听事件。
        /// </summary>
        /// <param name="event"></param>
        public void Add(IKeyMonitorEvent @event)
        {
            if (@event == null)
            {
                return;
            }

            _keyMonitorEvents.Add(@event);
        }