private void BtnImport_Click(object sender, EventArgs e) { var dbNode = ConnectionTree.SelectedNode as DbTreeNode; //ImportFromJsonFrm frm = new ImportFromJsonFrm(dbNode.ServerConnectionString, dbNode.DbName); //frm.ShowDialog(); var frm = new ImportDumpFrm(dbNode.DbName, dbNode.Server); frm.ShowDialog(); }
private void BtnRestoreDb_Click(object sender, EventArgs e) { var serverNode = ConnectionTree.SelectedNode as ServerTreeNode; var CurrentConnectionString = serverNode.ServerConnectionString; var frm = new ImportDumpFrm(serverNode.Server); if (frm.ShowDialog() == DialogResult.OK) { ConnectionTree.Nodes.Remove(serverNode); NewConnection(new MDTServer() { ConnectionString = CurrentConnectionString, Server = serverNode.Text }); } }