Esempio n. 1
0
        private void textBoxHotKeySequence_Click(object sender, EventArgs e)
        {
            AutoTypeConfig autoTypeConfig = new AutoTypeConfig();

            if (textBoxHotKeySequence.Text != KeeOtp2Ext.BuiltInTotpPlaceHolder)
            {
                autoTypeConfig.DefaultSequence = textBoxHotKeySequence.Text;
            }
            EditAutoTypeItemForm eatf = new EditAutoTypeItemForm();

            eatf.InitEx(autoTypeConfig, -1, true, KeeOtp2Ext.BuiltInTotpPlaceHolder, null);
            eatf.ShowDialog();

            if (eatf.DialogResult == DialogResult.OK && autoTypeConfig.DefaultSequence != string.Empty)
            {
                textBoxHotKeySequence.Text = autoTypeConfig.DefaultSequence;
            }
            else
            {
                textBoxHotKeySequence.Text = KeeOtp2Ext.BuiltInTotpPlaceHolder;
            }
        }