private void SaveDefsClicked(object sender, EventArgs e) { if (!ValidateCliScaling()) { return; } GetOptions(); try { viewOpts.Save(App.SettingsFileName); } catch (IOException) { MessageBox.Show(App.GetStr("Unable to save defaults!"), App.GetStr("Error"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } }