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!"; } }
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!"; } }