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 SettingsExpertForm esf = new SettingsExpertForm(go); esf.ShowDialog(); _mceOptions.UpdateGeneralOptions(go, false); // Update it }
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 SettingsExpertForm esf = new SettingsExpertForm(go); esf.WriteAndValidateSettings(); _mceOptions.UpdateGeneralOptions(go, false); // Save the updated settings this.Close(); // locale not changed, we're good }