Пример #1
0
 public override void RedoExcute()
 {
     Global.BeginInit();
     (Application.Current as IAppGlobal).SlideViewMode = SlideViewMode.SlideMaster;
     SlideHelper.UnSlectedAll();
     (Application.Current as IAppGlobal).DocumentControl.Slides[0].IsSelected = true;
     Global.EndInit();
 }
 public override void UndoExcute()
 {
     Global.BeginInit();
     (Application.Current as IAppGlobal).SelectedThemeView.SlideMasters.Remove(NewSlideMaster);
     (Application.Current as IAppGlobal).LocalThemesCollection.Remove(NewTheme);
     SlideHelper.UnSlectedAll();
     (Application.Current as IAppGlobal).SelectedSlide = OldSlideMaster;
     Global.EndInit();
 }
 public override void RedoExcute()
 {
     Global.BeginInit();
     (Application.Current as IAppGlobal).SelectedThemeView.SlideMasters.Add(NewSlideMaster);
     (Application.Current as IAppGlobal).LocalThemesCollection.Add(OldTheme);
     //(Application.Current as IAppGlobal).SelectedTheme = NewTheme;
     SlideHelper.UnSlectedAll();
     NewSlideMaster.IsSelected = true;
     Global.EndInit();
 }
 public override void RedoExcute()
 {
     Global.BeginInit();
     SlideMaster.LayoutMasters.Insert(Index + 1, LayoutMaster);
     SlideHelper.UnSlectedAll();
     LayoutMaster.IsSelected = true;
     (Application.Current as IAppGlobal).SelectedThemeView.RefreshData();
     (Application.Current as IAppGlobal).SelectedTheme.SlideMasters[0] = (Application.Current as IAppGlobal).SelectedThemeView.Data.SlideMasters[0];
     Global.EndInit();
 }