private void btnRestore_Click(object sender, EventArgs e) { OpenFileDialog folder = new OpenFileDialog(); string Path = null; if (folder.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Path = folder.FileName; } BUS_Admin.RestoreDataBase(Path, conStrSettings); MessageBox.Show("Restore Success"); }