Exemplo n.º 1
0
        private void dbBrowseButton_Click(object sender, EventArgs e)
        {
            ServerConnection sc = GetConnection();

            if (sc == null)
            {
                return;
            }

            PickDatabaseForm dial = new PickDatabaseForm(sc);

            if (dial.ShowDialog() == DialogResult.OK)
            {
                dbTextBox.Text = dial.Database.Name;
            }

            dial.Dispose();
            sc.Disconnect();
        }
Exemplo n.º 2
0
        private void dbBrowseButton_Click(object sender, EventArgs e)
        {
            ServerConnection sc = GetConnection();
            if (sc==null)
                return;

            PickDatabaseForm dial = new PickDatabaseForm(sc);
            if (dial.ShowDialog() == DialogResult.OK)
                dbTextBox.Text = dial.Database.Name;

            dial.Dispose();
            sc.Disconnect();
        }