Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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",
                    () => { });
            }
        }