private void AutomodeButton_Click(object sender, EventArgs e) { if (ShortcutCreator.CreateMasterShortcut()) { MessageBox.Show("Master shortcut created!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private static bool CreateMasterShortcut() { if (ShortcutCreator.CreateMasterShortcut()) { MessageBox.Show("Master shortcut created!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); return(true); } return(false); }