Esempio n. 1
0
        private void globalKeyButton_Click(object sender, EventArgs e)
        {
            var getShortCutKeyCode = new GetShortCutKeyCode();

            getShortCutKeyCode.ShortCut = KeysHelper.GetKeyCombination(globalKeyTextBox.Text);
            if (getShortCutKeyCode.ShowDialog() == DialogResult.OK)
            {
                globalKeyTextBox.Text     = getShortCutKeyCode.ShortCut.ToString();
                selectedCommand.GlobalKey = globalKeyTextBox.Text;
            }
        }
Esempio n. 2
0
        private void buttonGetGlobalKey_Click(object sender, EventArgs e)
        {
            var getShortCutKeyCode = new GetShortCutKeyCode();

            getShortCutKeyCode.ShortCut = KeysHelper.GetKeyCombination(textBoxGlobalKey.Text);
            if (getShortCutKeyCode.ShowDialog() == DialogResult.OK)
            {
                textBoxGlobalKey.Text = getShortCutKeyCode.ShortCut.ToString();
                settings.GlobalKey    = textBoxGlobalKey.Text;
            }
        }