public void ProcessHotkey(Hotkeys hotkey, HotkeyBinding form, TextBox textBox) { form.Close(); textBox.Text = hotkey.subKey.ToString() + "," + hotkey.mainKey.ToString(); textBox.Tag = hotkey; SaveHotkeys(); this.Visible = true; }
public void CancelHotkey(HotkeyBinding form) { form.Close(); this.Visible = true; }