private void BtnExportDb_Click(object sender, EventArgs e) { var dbNode = ConnectionTree.SelectedNode as DbTreeNode; ExportFrm frm = new ExportFrm(dbNode.Server, dbNode.DbName, new List <string>()); frm.ShowDialog(); }
private void exportToolStripMenuItem_Click(object sender, EventArgs e) { var collectionNode = ConnectionTree.SelectedNode as CollectionTreeNode; ExportFrm frm = new ExportFrm(collectionNode.Server, collectionNode.DbName, new List <string>() { collectionNode.CollectionName }); frm.ShowDialog(); }