示例#1
0
        private static void TrayCreateStartupLink(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Do you want this software to automatically open when Windows starts (recommended)? Click \"Yes\"", "Open on startup? | " + MainProgram.messageBoxTitle, MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                MainProgram.CreateStartupLink();
                MessageBox.Show("Good choice! ACC will now start with Windows!", "Wuu! | " + MainProgram.messageBoxTitle + "");
            }
            else if (dialogResult == DialogResult.No)
            {
                MessageBox.Show("Alrighty. If you regret and want ACC to open automatically you always right-click on " + MainProgram.messageBoxTitle + " in the tray and click \"Open on startup\"!", "Aww | " + MainProgram.messageBoxTitle);
            }
        }