private void openConfigurationForm_Click(object sender, EventArgs e) { using (ConfigurationForm form = new ConfigurationForm()) { switch (form.ShowDialog(this)) { case DialogResult.OK: Runtime.Instance.Settings.Save(); break; default: Runtime.Instance.Settings.Reset(); break; } } }