private void mnu_item_manage_fields_Click(object sender, EventArgs e) { var table = tree_existing.SelectedNode.Tag as DBTable; var form = new ManageRelatedColumns { Table = table }; form.ShowDialog(); }
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { this.SelectedDBObject = treeView1.SelectedNode.Tag as DBObject; if (treeView1.SelectedNode.Tag is DBTable) { var table = treeView1.SelectedNode.Tag as DBTable; var form = new ManageRelatedColumns { Table = table }; form.ShowDialog(); } }