private void AddHotkey(int hotkeyId, string hotkeyDescription, HotkeySetting hotkeySetting, Action action, ToolStripMenuItem menuItem = null) { hotkeySetting.Tag = hotkeyId; hotkeySetting.Description = hotkeyDescription; hotkeySetting.Action = action; hotkeySetting.MenuItem = menuItem; Settings.Add(hotkeySetting); hotkeySetting.UpdateMenuItemShortcut(); hotkeySetting.HotkeyStatus = hotkeyForm.RegisterHotkey(hotkeySetting.Hotkey, action, hotkeyId); }