protected override void ExecuteAction(string ribbonId) { LoadingDialogBox splashView = new LoadingDialogBox(); splashView.ShowThematicDialog(false); AzureAccountStorageService.LoadUserAccount(); WatsonAccountStorageService.LoadUserAccount(); AudioSettingStorageService.LoadAudioSettingPreference(); splashView.Close(); this.RegisterTaskPane(typeof(ELearningLabTaskpane), ELearningLabText.ELearningTaskPaneLabel, ELearningTaskPaneVisibleValueChangedEventHandler); CustomTaskPane eLearningTaskpane = this.GetTaskPane(typeof(ELearningLabTaskpane)); eLearningTaskpane.Visible = !eLearningTaskpane.Visible; }
private static void AddCompleteAnimations(PowerPointSlide currentSlide, PowerPointSlide nextSlide) { var addedSlide = currentSlide.CreateAutoAnimateSlide() as PowerPointAutoAnimateSlide; Globals.ThisAddIn.Application.ActiveWindow.View.GotoSlide(addedSlide.Index); LoadingDialogBox loadingDialog = new LoadingDialogBox(content: AnimationLabText.AutoAnimateLoadingText); loadingDialog.Show(); addedSlide.MoveMotionAnimation(); // Move shapes with motion animation already added addedSlide.PrepareForAutoAnimate(); RenameCurrentSlide(currentSlide); PrepareNextSlide(nextSlide); addedSlide.AddAutoAnimation(currentSlideShapes, nextSlideShapes, matchingShapeIDs); Globals.ThisAddIn.Application.CommandBars.ExecuteMso("AnimationPreview"); PowerPointPresentation.Current.AddAckSlide(); loadingDialog.Close(); }