Ejemplo n.º 1
0
 public static void PushAndDoAction(this IUndoEngine engine, Action doAction, Action undoAction, bool recordUndo)
 {
     if (recordUndo)
     {
         engine.PushAndDoAction(doAction, undoAction);
     }
     else
     {
         doAction();
     }
 }
Ejemplo n.º 2
0
 public static void PushToggleAction(this IUndoEngine engine, Action doUndoAction)
 {
     engine.PushAndDoAction(doUndoAction, doUndoAction);
 }