Exemplo n.º 1
0
        private void btnClearAllHotKeys_Click(object sender, EventArgs e)
        {
            HotKeyManager.ClearAll();
            RefreshGrid();

            MessageBox.Show("Hotkeys Cleared!");
        }
Exemplo n.º 2
0
        private void ButtonHotKey_Click(object sender, EventArgs e)
        {
            Program.Settings.HotKeys = "";
            HotKeyManager.ClearAll();
            var hkf = new HotKeyForm();

            hkf.ShowDialog(this);
        }
Exemplo n.º 3
0
        public HotKeyForm()
        {
            InitializeComponent();

            _hotkey = new HotKey();

            HotKeyManager.ClearAll();
            // Keep in mind how the user wants the devices shown
            if (Program.Settings.ShowDisabledDevices)
            {
                _deviceStateFilter |= DeviceState.Disabled;
            }

            if (Program.Settings.ShowDisconnectedDevices)
            {
                _deviceStateFilter |= DeviceState.Unplugged;
            }
        }