private void btn_gameConfigSave_Click(object sender, EventArgs e) { if (config.isNeededPathGame()) { String path = openSaveDialog(); if (path != null) { config.ConfigFilePath = path; } else { return; } } MessageBox.Show(Messages.SAVED, Messages.SAVED_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Information); config.saveConfig(); }