Пример #1
0
        private void updateHotKey(HotKey hk)
        {
            if (!list.Contains(hk))
            {
                MessageBox.Show("选择出错,请重启应用");
                return;
            }
            IHotKey aucInputKey = new FrmInputKey();

            aucInputKey.getHotKey(hk);
        }
Пример #2
0
        private void InsertHotKey()
        {
            this.dgv.DataSource = null;

            IHotKey aucInputKey = new FrmInputKey();
            HotKey  cmd         = new HotKey();

            cmd.HotKeyId = new Random().Next();
            HotKey hotKey = aucInputKey.getHotKey(cmd);

            if (hotKey.RegKeys == null)
            {
                return;
            }

            list.Add(hotKey);
            this.dgv.DataSource = list;
        }