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); } }
private void btnAddDatabase_Click(object sender, EventArgs e) { FormConnection frm = new FormConnection(this); frm.ShowDialog(); }