Esempio n. 1
0
        static public UndoTaskClassifyFirstCycle CreateUndoTask(Event @event, bool firstCycleOld, bool firstCycleNew, bool manuallyClassifiedFirstCycleOld, bool manuallyClassifiedFirstCycleNew)
        {
            var task = new UndoTaskClassifyFirstCycle();

            task.Event         = @event;
            task.FirstCycleOld = firstCycleOld;
            task.FirstCycleNew = firstCycleNew;
            task.ManuallyClassifiedFirstCycleOld = manuallyClassifiedFirstCycleOld;
            task.ManuallyClassifiedFirstCycleNew = manuallyClassifiedFirstCycleNew;
            return(task);
        }
Esempio n. 2
0
 UndoPosition DispatchRedoClassifyFirstCycle(UndoTaskClassifyFirstCycle task)
 {
     task.Event.FirstCycle = task.FirstCycleNew;
     task.Event.ManuallyClassifiedFirstCycle = task.ManuallyClassifiedFirstCycleNew;
     return(task.Position);
 }