Пример #1
0
        public void Add(Keys keys, Action action)
        {
            int keyId = this._hotKeyList.Count;

            this._hotKeyList.Add(new HotKey(keys, action));
            ApiHotKey.Set(this._parentForm, keys, keyId);
        }
Пример #2
0
 public void Clear()
 {
     for (int index = this._hotKeyList.Count - 1; index >= 0; index--)
     {
         ApiHotKey.Clear(this._parentForm, index);
         this._hotKeyList.RemoveAt(index);
     }
 }