Пример #1
0
 UndoPosition DispatchRedoVerticalMerge(UndoTaskVerticalMerge task)
 {
     Events.MergeVerticallyLow(task.EventSource, task.EventTarget, true, null, RemovePolygon, RenderEvent, new UndoPosition(true));
     task.EventTarget.FixtureClass = task.FixtureClassTargetNew;
     task.EventSource.FixtureClass = task.FixtureClassSourceOld;
     return(task.Position);
 }
Пример #2
0
        UndoPosition DispatchUndoVerticalMerge(UndoTaskVerticalMerge task)
        {
            task.EventSource.Clear();
//            task.EventSource = Events.SplitVertically(task.EventTarget, SlightlyInTheFuture(task.EventSource.StartTime), SlightlyMore(task.EventSource.Baseline), null, RemovePolygon, RenderEvent, new UndoPosition(true), task.EventSource);
//            task.EventSource = Events.SplitVertically(task.EventTarget, SlightlyInTheFuture(task.EventSource.StartTime), task.EventSource.Baseline, null, RemovePolygon, RenderEvent, new UndoPosition(true), task.EventSource);
            task.EventSource = Events.SplitVertically(task.EventTarget, task.EventSource.StartTime, task.EventSource.Baseline, null, RemovePolygon, RenderEvent, new UndoPosition(true), task.EventSource);
            task.EventTarget.FixtureClass = task.FixtureClassTargetOld;
            task.EventSource.FixtureClass = task.FixtureClassSourceOld;
            return(task.Position);
        }
Пример #3
0
        static public UndoTaskVerticalMerge CreateUndoTask(Event eventTarget, Event eventSource, FixtureClass fixtureClassTargetOld, FixtureClass fixtureClassSourceOld)
        {
            var task = new UndoTaskVerticalMerge();

            task.EventSource           = eventSource;
            task.FixtureClassSourceOld = fixtureClassSourceOld;
            task.EventTarget           = eventTarget;
            task.FixtureClassTargetOld = fixtureClassTargetOld;
            task.FixtureClassTargetNew = task.EventTarget.FixtureClass;

            return(task);
        }