Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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
        }
Exemplo n.º 3
0
        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
        }
Exemplo n.º 4
0
        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;
        }