void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
try
{
//create a zip file
using (Ionic.Zip.ZipFile zip = new Ionic.Zip.ZipFile())
{
zip.AddDirectory(_tempFolder);
zip.Save(_zipFileName);
}
//delete temp dir
DeleteDirectory(_tempFolder);
string c;
if (jira.IssuesBCFCollection.Count() == 1)
c = " Issue";
else
c = " Issues";
MessageBox.Show(jira.IssuesBCFCollection.Count().ToString() + c + " exported successfully!");
progress.Value = 0;
progress.Visibility = System.Visibility.Hidden;
mainwin.IsEnabled = true;
} // END TRY
catch (System.Exception ex1)
{
MessageBox.Show("exception: " + ex1);
}
}