private void button_getSqlServerName_Click(object sender, EventArgs e) { GetSqlServerDlg dlg = new GetSqlServerDlg(); GuiUtil.AutoSetDefaultFont(dlg); dlg.StartPosition = FormStartPosition.CenterScreen; dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) { return; } this.textBox_sqlServerName.Text = dlg.SqlServerName; }
private void button_getSqlServerName_Click(object sender, EventArgs e) { GetSqlServerDlg dlg = new GetSqlServerDlg(); GuiUtil.AutoSetDefaultFont(dlg); dlg.StartPosition = FormStartPosition.CenterScreen; dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) { return; } this.textBox_sqlServerName.Text = dlg.SqlServerName; #if NO if (string.IsNullOrEmpty(this.textBox_sqlServerName.Text) == false) { string strError = ""; int nRet = GetIntegratedSecurityOnlyMode(this.textBox_sqlServerName.Text, out strError); if (nRet == -1) { MessageBox.Show(this, strError); } else { if (nRet == 0) { this.groupBox_login.Enabled = true; } else { this.groupBox_login.Enabled = false; } } } #endif }
private void button_getSqlServerName_Click(object sender, EventArgs e) { GetSqlServerDlg dlg = new GetSqlServerDlg(); GuiUtil.AutoSetDefaultFont(dlg); dlg.StartPosition = FormStartPosition.CenterScreen; dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) return; this.textBox_sqlServerName.Text = dlg.SqlServerName; #if NO if (string.IsNullOrEmpty(this.textBox_sqlServerName.Text) == false) { string strError = ""; int nRet = GetIntegratedSecurityOnlyMode(this.textBox_sqlServerName.Text, out strError); if (nRet == -1) MessageBox.Show(this, strError); else { if (nRet == 0) this.groupBox_login.Enabled = true; else this.groupBox_login.Enabled = false; } } #endif }
private void button_getSqlServerName_Click(object sender, EventArgs e) { GetSqlServerDlg dlg = new GetSqlServerDlg(); GuiUtil.AutoSetDefaultFont(dlg); dlg.StartPosition = FormStartPosition.CenterScreen; dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) return; this.textBox_sqlServerName.Text = dlg.SqlServerName; }