private void hotkeysToolStripMenuItem_Click(object sender, EventArgs e) { UiCommands.UnregisterHotkeys(); HotkeysForm form = new HotkeysForm(); form.ShowDialog(); UiCommands.RegisterHotkeys(); }