Exemplo n.º 1
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));
     }
 }
Exemplo n.º 2
0
 public static void AddPlaylistItemMoveAction(IPlaylistItemService dragDropControl, int sourceIndex, int destIndex)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemMoveAction(dragDropControl, sourceIndex, destIndex));
     }
 }
Exemplo n.º 3
0
 public static void AddPlaylistItemInsertAction(IPlaylistItemService dragDropControl, PlaylistItemControl btn, int index)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemInsertAction(dragDropControl, btn, index));
     }
 }
Exemplo n.º 4
0
 public static void AddNavigateForwardAction(IDateTimeNavigationService navigate)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new NavigateForwardAction(navigate));
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 6
0
 public UndoControlBase()
 {
     if (!DesignMode)
     {
         _undoManager = UndoService.RegisterService();
     }
 }
Exemplo n.º 7
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));
     }
 }
Exemplo n.º 8
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));
     }
 }