Exemple #1
0
        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();
        }
Exemple #2
0
        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
                });
            }
        }