public static void AddPlaylistItemInsertAction(IPlaylistItemService dragDropControl, PlaylistItemControl btn, int index) { if (UndoService.CandAddAction) { UndoService.AddAction(new PlaylistItemInsertAction(dragDropControl, btn, index)); } }
public static void AddPlaylistItemRemoveAtAction(IPlaylistItemService dragDropControl, ProWrite.UI.Controls.Playlist.PlaylistItemControl btn, int index) { if (UndoService.CandAddAction) { UndoService.AddAction(new PlaylistItemRemoveAtAction(dragDropControl, btn, index)); } }
public static void AddPlaylistItemMoveAction(IPlaylistItemService dragDropControl, int sourceIndex, int destIndex) { if (UndoService.CandAddAction) { UndoService.AddAction(new PlaylistItemMoveAction(dragDropControl, sourceIndex, destIndex)); } }
public static void AddNavigateForwardAction(IDateTimeNavigationService navigate) { if (UndoService.CandAddAction) { UndoService.AddAction(new NavigateForwardAction(navigate)); } }
public static void AddGotoDateAction(IDateTimeNavigationService navigate, DateTime newValue, DateTime oldValue, SchedulerViewType newViewType, SchedulerViewType oldViewType) { if (UndoService.CandAddAction) { UndoService.AddAction(new GotoDateAction(navigate, newValue, oldValue, newViewType, oldViewType)); } }
/// <summary> /// add item added uploadAction /// </summary> /// <param name="shape"></param> /// <param name="frameLayer"></param> public static void AddLayerAddedAction(LayerControl frameLayer) { if (_current != null && _current.CanAddAction && MessageControl.Current != null && frameLayer != null) { UndoService.AddAction(new LayerAddedAction(frameLayer)); } }
/// <summary> /// Function: Add item move uploadAction /// Author : Jerry Xu /// Date : 2008-8-22 /// </summary> /// <param name="layerContainer">FrameLayerContainerNew</param> /// <param name="source">FrameLayerNew</param> /// <param name="dest">FrameLayerNew</param> public static void AddLayerMoveAction(MessageControl layerContainer, LayerControl source, LayerControl dest) { if (_current != null && _current.CanAddAction && layerContainer != null && source != null && dest != null) { UndoService.AddAction(new LayerMoveActionNew(layerContainer, source, dest)); } }