public void Execute(object data) { Lane targetLane = (Lane)data; RoadPositionRecords.DeleteLanes(new List <Lane> { targetLane }); deleted = targetLane; }
public void Undo() { RoadPositionRecords.DeleteLanes(added); RoadPositionRecords.RestoreLanes(deleted); }