Esempio n. 1
0
        private void uiEditShortcutButton_Click(object sender, EventArgs e)
        {
            ShortcutForm shortcutForm = new ShortcutForm();

            shortcutForm.Shortcut = (ShortcutItem)uiShortcuts.SelectedItems[0].Tag;

            if (shortcutForm.ShowDialog() == DialogResult.OK)
            {
                var si = shortcutForm.Shortcut;
                si.ResetTimeout();

                SetListVievItemValue(uiShortcuts.SelectedItems[0], si);
            }

            uiShortcuts.SelectedItems.Clear();
        }
Esempio n. 2
0
 private void uiAddShortcutButton_Click(object sender, EventArgs e)
 {
     ShortcutForm shortcutForm = new ShortcutForm();
     if (shortcutForm.ShowDialog() == DialogResult.OK)
     {
         AddShortcut(shortcutForm.Shortcut);
     }
 }