Example #1
0
 UndoPosition DispatchRedoClassify(UndoTaskClassify task)
 {
     task.Event.FixtureClass               = task.FixtureClassSource;
     task.Event.ManuallyClassified         = task.ManuallyClassifiedNew;
     task.Event.ClassifiedUsingFixtureList = task.ClassifiedUsingFixtureListNew;
     return(task.Position);
 }
Example #2
0
 UndoPosition DispatchUndoClassify(UndoTaskClassify task)
 {
     task.Event.FixtureClass               = task.FixtureClassTarget;
     task.Event.ManuallyClassified         = task.ManuallyClassifiedOld;
     task.Event.ClassifiedUsingFixtureList = task.ClassifiedUsingFixtureListOld;
     return(task.Position);
 }
Example #3
0
        static public UndoTaskClassify CreateUndoTask(Event @event, FixtureClass fixtureClassTarget, FixtureClass fixtureClassSource, bool manuallyClassifiedOld, bool manuallyClassifiedNew, bool classifiedUsingFixtureListOld, bool classifiedUsingFixtureListNew)
        {
            var task = new UndoTaskClassify();

            task.Event = @event;
            task.FixtureClassTarget            = fixtureClassTarget;
            task.FixtureClassSource            = fixtureClassSource;
            task.ManuallyClassifiedOld         = manuallyClassifiedOld;
            task.ManuallyClassifiedNew         = manuallyClassifiedNew;
            task.ClassifiedUsingFixtureListOld = classifiedUsingFixtureListOld;
            task.ClassifiedUsingFixtureListNew = classifiedUsingFixtureListNew;
            return(task);
        }