private void bgwEac3toLoadTitle_DoWork(object sender, DoWorkEventArgs e)
{
try
{
IJsonSerializationService<ISOLanguageCodeCollection> jsonSerializationService = new JsonSerializationService<ISOLanguageCodeCollection>();
IMKVMergeLanguageService languageService = new MKVMergeLanguageService(jsonSerializationService);
ICommandLineProcessService commandLineProcessService = e.Argument as CommandLineProcessService;
List<ProcessOutputLineItem> processOutputLineItems = commandLineProcessService.GetProcessOutputLineItems();
ILineItemIdentifierService lineItemService = new BluRayTitleLineItemIdentifierService();
IBluRayTitleParserService parserService = new BluRayTitleParserService(lineItemService, processOutputLineItems, languageService);
_bluRaySummaryInfo.BluRayTitleInfo = parserService.GetTitleInfo();
}
catch (Exception ex)
{
_displayErrorMessageService.DisplayError(new ErrorMessage() { DisplayMessage = "There was a problem loading the title!", DisplayTitle = "Error.", Exception = ex, MethodNameWhereExceptionOccurred = MethodBase.GetCurrentMethod().Name });
}
}