void resoreButton_Click(object sender, EventArgs e) { using (BrowserScriptPocketQueriesPQSettingForm dlg = new BrowserScriptPocketQueriesPQSettingForm(_settingsFileName)) { if (dlg.ShowDialog() == DialogResult.OK) { if (dlg.SelectedSetting != null) { if (!dlg.SelectedSetting.SetPQPage(Browser)) { MessageBox.Show(Utils.LanguageSupport.Instance.GetTranslation(STR_ERROR)); } } } } }