Exemple #1
0
        private void expertSettingsBtn_Click(object sender, EventArgs e)
        {
            if (!CheckValidTimes())
            {
                return;
            }

            WriteGeneralSettings();                                      // Get the changes to the general options object before getting into expert settings so it is reflected (don't save it)

            GeneralOptions             go  = _mceOptions.GeneralOptions; // Get a copy of the GO
            SettingsSystemSettingsForm esf = new SettingsSystemSettingsForm(go);

            esf.ShowDialog();

            _mceOptions.UpdateGeneralOptions(go, false); // Update it
        }
Exemple #2
0
        private void oKcmd_Click(object sender, EventArgs e)
        {
            if (!CheckValidTimes())
            {
                return;
            }

            WriteGeneralSettings();                         // Write the latest settings

            GeneralOptions go = _mceOptions.GeneralOptions; // Get the current copy of GO

            // Validate and update the expert form settings
            SettingsSystemSettingsForm esf = new SettingsSystemSettingsForm(go);

            esf.WriteAndValidateSettings();

            _mceOptions.UpdateGeneralOptions(go, false); // Save the updated settings

            this.Close();                                // locale not changed, we're good
        }