public void Build( BuilderContext context, IControl control )
 {
     var roadJunctionBlock = ( CarsRemoverBuildMode ) control;
     this._carsRemover = new CarsRemover( roadJunctionBlock, c => context.RoadInformationFactory.Create( c ) );
     context.AddElement( roadJunctionBlock, this._carsRemover );
 }
 public void Build( BuilderContext context, IControl control )
 {
     var laneBlock = ( RoadLaneBlock ) control;
     this._lane = new Lane( laneBlock, l => new LaneRoadInforamtion( l ) );
     context.AddElement( laneBlock, this._lane );
 }
 public void Build( BuilderContext context, IControl control )
 {
     var buildJunctionEdge = ( BuildJunctionEdge ) control;
     this._junctionEdge = new JunctionEdge( buildJunctionEdge, l => context.RoadInformationFactory.Create( l ) );
     context.AddElement( buildJunctionEdge, this._junctionEdge );
 }
 public void Build( BuilderContext context, IControl control )
 {
     var roadConnection = (RoadConnection) control;
     this._lane = new LaneCorner( roadConnection, l => context.RoadInformationFactory.Create( l ) );
     context.AddElement( roadConnection, this._lane );
 }