示例#1
0
 public static void AddPlaylistItemInsertAction(IPlaylistItemService dragDropControl, PlaylistItemControl btn, int index)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemInsertAction(dragDropControl, btn, index));
     }
 }
示例#2
0
 public static void AddPlaylistItemRemoveAtAction(IPlaylistItemService dragDropControl, ProWrite.UI.Controls.Playlist.PlaylistItemControl btn, int index)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemRemoveAtAction(dragDropControl, btn, index));
     }
 }
示例#3
0
 public static void AddPlaylistItemMoveAction(IPlaylistItemService dragDropControl, int sourceIndex, int destIndex)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemMoveAction(dragDropControl, sourceIndex, destIndex));
     }
 }
示例#4
0
 public static void AddNavigateForwardAction(IDateTimeNavigationService navigate)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new NavigateForwardAction(navigate));
     }
 }
示例#5
0
 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));
     }
 }
示例#6
0
 /// <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));
     }
 }
示例#7
0
 /// <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));
     }
 }