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(); }
private void addkHandler(object data) { var index = slides.arraySize; slides.arraySize++; reorderableSlides.index = index; if (data != null) { var p = (SlideCreationParams)data; var templatePrefab = AssetDatabase.LoadAssetAtPath(p.Path, typeof(GameObject)) as GameObject; slides.GetArrayElementAtIndex(index).objectReferenceValue = SlideHelper.CreateNewSlide(index, templatePrefab, true); } else { slides.GetArrayElementAtIndex(index).objectReferenceValue = null; } serializedObject.ApplyModifiedProperties(); }