private void GenerateLectio() { dialogService.SetBusy(); Log("Rozpoczêto tworzenie Lectio. Czekaj..."); if (TitlePage.IsPictureFromShortContemplation) ExtractPictureFromShortContemplation(); var lectioGenerator = new LectioDivinaGenerator(); lectioGenerator.Notification += Progress_Notification; lectioGenerator.GenerateLectio(TitlePage.LectioTemplateFile, TitlePage.WeekPictureName, TitlePage.LectioTargetFile, lectioDivinaWeek, Properties.Settings.Default.ShowWord); }
private void GenerateWordContemplation() { try { LectioDivinaGenerator lectioGenerator = new LectioDivinaGenerator(); lectioGenerator.GenerateOneDayLectio( DetermineTemplateFilename(), Properties.Settings.Default.OneDayKey, contemplation, ShowAfterGeneration); } catch (Exception ex) { dialogService.ShowError("Coœ posz³o Ÿle:\r\n" + GetNestedExceptionMessage(ex), "Problem", "Ok", () => { }); } }