예제 #1
0
        static public UndoTaskApprove CreateUndoTask(Event @event, bool manuallyApprovedOld, bool manuallyApprovedNew)
        {
            var task = new UndoTaskApprove();

            task.Event = @event;
            task.ManuallyApprovedOld = manuallyApprovedOld;
            task.ManuallyApprovedNew = manuallyApprovedNew;
            return(task);
        }
예제 #2
0
 UndoPosition DispatchRedoApprove(UndoTaskApprove task)
 {
     task.Event.ManuallyApproved = task.ManuallyApprovedNew;
     return(task.Position);
 }