Example #1
0
 private void restore_Click_1(object sender, EventArgs e)
 {
     if (DBSync.restore(restoreLocationText.Text))
     {
         MessageBox.Show("Done!", "Restoring database", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         MessageBox.Show("Could not restore. Please check that the path \nspecified is correct and that the file is valid.", "Restoring database", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }