void okButton_Click(object sender, EventArgs e)
{
bool changed = false;
if (recentFilesMax != Settings.Default.RecentFilesMax)
{
Settings.Default.RecentFilesMax = recentFilesMax;
changed = true;
}
if (Settings.Default.UseSystemLanguage != this.useSystemLanguage ||
Settings.Default.SelectedLanguage != (string)this.languageComboBox.SelectedValue)
{
Settings.Default.UseSystemLanguage = this.UseSystemLanguage;
Settings.Default.SelectedLanguage = (string)this.languageComboBox.SelectedValue;
Program.ShowMessage(strings.ProgramRestartSettings);
changed = true;
}
if(changed)
Settings.Default.Save();
this.DialogResult = DialogResult.OK;
}