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); }
UndoPosition DispatchRedoApprove(UndoTaskApprove task) { task.Event.ManuallyApproved = task.ManuallyApprovedNew; return(task.Position); }