Exemplo n.º 1
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
        }