示例#1
0
        private void editHotkeysButton_Click(object sender, EventArgs e)
        {
            int centerX    = DesktopLocation.X + (Width / 2);
            int centerY    = DesktopLocation.Y + (Height / 2);
            var hotkeyForm = new HotkeyForm(centerX - 321 / 2, centerY - 217 / 2, Hotkeys);

            hotkeyForm.ShowDialog();
            Hotkeys = hotkeyForm.Hotkeys;
            ApplyHotkeys();
        }