protected void bw_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e )
{
btnPrev.Visibility = Visibility.Visible;
pgReportProgress.Visibility = Visibility.Collapsed;
if ( e.Error != null )
{
lblReportProgress.Content = "Error: " + e.Error.Message;
throw e.Error;
}
if ( e.Result != null )
{
_pdfOutput = e.Result as byte[];
lblReportProgress.Content = "Complete";
btnSaveAs.Visibility = Visibility.Visible;
}
else
{
_pdfOutput = null;
lblReportProgress.Content = @"Warning:
No contributions found with the criteria provided.";
}
}