Example #1
0
        private void btnAddDatabase_Click(object sender, EventArgs e)
        {
            ConnectionForm frm = new ConnectionForm();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                Model.Database database = frm.database;
                ShowDatabase(database);
            }
        }
Example #2
0
        private void btnAddDatabase_Click(object sender, EventArgs e)
        {
            ConnectionForm frm = new ConnectionForm();

            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);
            }
        }