Esempio n. 1
0
 private void btnRestore_Click(object sender, EventArgs e)
 {
     btnConnect_Click(null, null);
     if (DBUtilities.RestoreDatabase(txtRestoreFile.Text))
     {
         lblRestoreStatus.Text = "Database restore successful!";
     }
     else
     {
         lblRestoreStatus.Text = "Database restore failed!";
     }
 }
Esempio n. 2
0
 private void btnBackup_Click(object sender, EventArgs e)
 {
     btnConnect_Click(null, null);
     if (DBUtilities.BackupDatabase(txtBackupPath.Text + '\\' + this.database + ".sql"))
     {
         lblBackupStatus.Text = "Database backup successful!";
     }
     else
     {
         lblBackupStatus.Text = "Database backup failed!";
     }
 }