Example #1
0
        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;
                }
            }
        }
Example #2
0
        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;
                }
            }
        }