Пример #1
0
        public bool Unregister(ModifierKeys modifierKey, Keys key)
        {
            ushort id = GlobalAtom.Find(this.GetHotKeyName(modifierKey, key));

            if (this.HotKeyTable.ContainsKey(id))
            {
                if (HotKeyManager.UnregisterHotKey(this.Owner.Handle, id))
                {
                    this.HotKeyTable.Remove(id);
                    GlobalAtom.Delete(id);
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }