private void KeyManagerMenuItem_Click(object sender, EventArgs e) { frmKeyboardManager keyboardManager = new frmKeyboardManager(); keyboardManager.ShowDialog(); if (keyboardManager.DialogResult == DialogResult.OK) { Properties.Hotkeys.Default.Save(); } if (keyboardManager.DialogResult == DialogResult.Cancel) { Properties.Hotkeys.Default.Reload(); } }
} // ShowSettings. private void ShowKeyboardManager() { frmKeyboardManager keyboardManager = new frmKeyboardManager(); keyboardManager.ShowDialog(); if (keyboardManager.DialogResult == DialogResult.OK) { Properties.Hotkeys.Default.Save(); } if (keyboardManager.DialogResult == DialogResult.Cancel) { Properties.Hotkeys.Default.Reload(); } } // ShowKeyboardManager.