コード例 #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;
                }
            }
        }
コード例 #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;
                }
            }
        }