private void SyncLabItemToAnimationPane(ELearningService service)
        {
            int totalSelfExplanationItemsCount   = service.GetExplanationItemsCount();
            ProcessingStatusForm progressBarForm =
                new ProcessingStatusForm(totalSelfExplanationItemsCount, BackgroundWorkerType.ELearningLabService, service);

            progressBarForm.ShowThematicDialog();
        }
        public static void EmbedSelectedSlideNotes()
        {
            List <PowerPointSlide> slides = PowerPointCurrentPresentationInfo.SelectedSlides.ToList();

            if (AudioSettingService.selectedVoiceType == AudioGenerator.VoiceType.AzureVoice &&
                AzureAccount.GetInstance().IsEmpty())
            {
                MessageBox.Show("Invalid user account. Please log in again.");
                throw new Exception("Invalid user account.");
            }

            int numberOfSlides = slides.Count;

            ProcessingStatusForm progressBarForm =
                new ProcessingStatusForm(numberOfSlides, BackgroundWorkerType.AudioGenerationService);

            progressBarForm.ShowThematicDialog(false);
        }