private void BtnOK_Click(object sender, EventArgs e) { cfg.WriteString(SettingItems.baseUrl, txtBaseUrl.Text); cfg.WriteString(SettingItems.appKey, txtAppKey.Text); cfg.WriteString(SettingItems.appSecret, txtAppSecret.Text); cfg.Save(SettingItems.settingFile); DialogResult = DialogResult.OK; Close(); }