Example #1
0
        private void btnRestore_Click(object sender, EventArgs e)
        {
            openFileDialog1 = new OpenFileDialog {
                Filter           = "Database backups (*.bak)|*.bak",
                Title            = "Open database backup",
                InitialDirectory = Directory.GetCurrentDirectory() + "\\..\\..\\..\\BackUps\\",
            };

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                BackUp.realizarRestore(openFileDialog1.FileName, Sesion.obtenerSesion().usuario);
                lblResponse.Text = Sesion.obtenerSesion().idioma.textos["restore_done"];
            }
        }