예제 #1
0
        private void btnShortcutAdd_Click(object sender, EventArgs e)
        {
            frmShortcut s = new frmShortcut(null);

            s.ShowDialog();

            if (s.shortcut != null)
            {
                //AubitDesktop.Xml.Shortcuts Sc;
                Program.AppSettings.Shortcuts.Add(s.shortcut);
                Program.SaveSettings();
                ShowShortcuts();
            }
            s.Close();
        }
예제 #2
0
        private void btnShortcutEdit_Click(object sender, EventArgs e)
        {
            if (lstShortcuts.SelectedIndex >= 0)
            {
                frmShortcut s = new frmShortcut(Program.AppSettings.Shortcuts[lstShortcuts.SelectedIndex]);
                s.ShowDialog();

                if (s.shortcut != null)
                {
                    Program.AppSettings.Shortcuts[lstShortcuts.SelectedIndex] = s.shortcut;
                    Program.SaveSettings();
                    ShowShortcuts();
                }
                s.Close();
            }
        }