/// <summary> /// girilen değerleri defult olarak kayder /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnOk_Click(object sender, EventArgs e) { //TODO:burada connection testi yaptılmalı dbparam.dataSource = txtServar.Text; if (cmbAuth.SelectedIndex == 0) { dbparam.IntegratedSecurity = true; } else { dbparam.IntegratedSecurity = false; dbparam.dbUserId = txtUser.Text; dbparam.dbPassword = txtPass.Text; } dbparam.initialCatalog = "AlimexQUESTIONS"; dbparam.setParam(); Application.Restart(); }