private void bgwEac3toWriteBatchFile_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
IEAC3ToBatchFileWriteService batchFileWriteService;
if (_eac3toConfiguration.IsExtractForRemux && _eac3toConfiguration.IfIsExtractForRemuxIsItForAMovie)
batchFileWriteService = e.Result as EAC3ToBatchFileWriteForMovieService;
else
batchFileWriteService = e.Result as EAC3ToBatchFileWriteService;
if (batchFileWriteService.Errors.Count() == 0)
{
MessageBox.Show("Batch File created!", "Process Complete", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show(string.Format("Error: {0}", batchFileWriteService.Errors[0].Description), "Error occurred", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
gbScreen.SetEnabled(true);
}