Esempio n. 1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            string       caption = "Apply Changes";
            string       message = "Are you sure you would like to apply the changes you made?";
            DialogResult Result  = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (Result == DialogResult.OK)
            {
                Settings.Default.Save();
                SettingsForm settingsForm = new SettingsForm();
                settingsForm.Close();
            }
        }
Esempio n. 2
0
        private void buttonCancel_Click(object sender, EventArgs e)
        {
            SettingsForm settingsForm = new SettingsForm();

            settingsForm.Close();
        }