Пример #1
0
        private void btnAddDatabase_Click(object sender, EventArgs e)
        {
            FormConnection frm = new FormConnection();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                TreeNode nodeDatabase = new TreeNode(frm.database.DbName, 0, 0);
                nodeDatabase.Tag = frm.database;
                this.tvDatabase.Nodes.Add(nodeDatabase);
                ShowDatabase(frm.database, nodeDatabase);
            }
        }
Пример #2
0
        private void btnAddDatabase_Click(object sender, EventArgs e)
        {
            FormConnection frm = new FormConnection(this);

            frm.ShowDialog();
        }