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