private void B_SetKey_Click(object sender, EventArgs e)
        {
            Dialogs.PressKeyDialog dlg = new PressKeyDialog();
            DialogResult           res = dlg.ShowDialog();

            if (res == DialogResult.OK)
            {
                this.Hotkey      = dlg.ReturnedKey;
                this.TB_Key.Text = Hotkey.ToString();
            }
        }
Exemplo n.º 2
0
        private void B_SetKey_Click(object sender, EventArgs e)
        {
            Dialogs.PressKeyDialog pressKeyForm = new Dialogs.PressKeyDialog()
            {
                StartPosition = FormStartPosition.Manual,
                Top           = this.Top + 20,
                Left          = this.Left + 20
            };
            var res = pressKeyForm.ShowDialog();

            if (res == DialogResult.OK)
            {
                VSS_RootEntry.Hotkey = pressKeyForm.ReturnedKey;
            }
        }