Beispiel #1
0
 UndoPosition DispatchUndoHorizontalSplit(UndoTaskHorizontalSplit task)
 {
     Events.MergeHorizontallyLow(task.EventSource, task.EventTarget, true, null, RemovePolygon, RenderEvent, new UndoPosition(true));
     task.EventTarget.FixtureClass = task.FixtureClassTarget;
     task.EventSource.FixtureClass = task.FixtureClassSource;
     return(task.Position);
 }
Beispiel #2
0
 UndoPosition DispatchRedoHorizontalSplit(UndoTaskHorizontalSplit task)
 {
     task.EventSource.Clear();
     task.EventSource = Events.SplitHorizontally(task.EventTarget, task.DateTime, null, RemovePolygon, RenderEvent, false, new UndoPosition(true), false);
     task.EventTarget.FixtureClass = task.FixtureClassTargetNew;
     task.EventSource.FixtureClass = task.FixtureClassSource;
     return(task.Position);
 }
Beispiel #3
0
        static public UndoTaskHorizontalSplit CreateUndoTask(Event eventTarget, FixtureClass fixtureClassTarget, Event eventSource, DateTime dateTime)
        {
            var task = new UndoTaskHorizontalSplit();

            task.EventTarget           = eventTarget;
            task.FixtureClassTarget    = fixtureClassTarget;
            task.FixtureClassTargetNew = task.EventTarget.FixtureClass;
            task.EventSource           = eventSource;
            task.FixtureClassSource    = eventSource.FixtureClass;
            task.DateTime = dateTime;
            return(task);
        }