Index: src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs =================================================================== diff -u -r104 -r108 --- src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs (.../DSoilModelMapEditor.cs) (revision 104) +++ src/Deltares.DSoilModel.Forms/DSoilModelMapEditor.cs (.../DSoilModelMapEditor.cs) (revision 108) @@ -6,10 +6,8 @@ using Deltares.DSoilModel.Data; using Deltares.DSoilModel.Forms.Properties; using Deltares.Geographic; -using Deltares.Geometry; using Deltares.Geotechnics; using Deltares.Geotechnics.ConePenetrationTest; -using Deltares.Geotechnics.Mechanisms; using Deltares.Standard; using Deltares.Standard.EventPublisher; using Deltares.Standard.Extensions; @@ -123,9 +121,11 @@ /// public BarButtonItem CreateButton(Image image) { - var button = new BarButtonItem(); - button.PaintStyle = BarItemPaintStyle.Standard; - button.Glyph = image; + var button = new BarButtonItem + { + PaintStyle = BarItemPaintStyle.Standard, + Glyph = image + }; mapEditor.Toolbar.AddItem(button); return button; } @@ -482,13 +482,13 @@ { splitLocation = new SoilSegmentSplitLocation { - SoilSegment = segment + SoilSegment = segment, + XCoordinate = segment.GetSegmentLength()/2 }; - splitLocation.XCoordinate = segment.GetSegmentLength()/2; } segmentSplitters.Clear(); segmentSplitters.Add(splitLocation); - mapEditor.AddLayer(segmentSplitters, true); + mapEditor.AddLayer(segmentSplitters); }); // event for length profile geometry editor @@ -520,10 +520,12 @@ var scheme = new PointScheme(); scheme.Categories.Clear(); - var pointCategory = new PointCategory(); - pointCategory.LegendText = "Segment Split"; - pointCategory.Symbolizer = new PointSymbolizer(Resources.SplitPoint, 15); - pointCategory.SelectionSymbolizer = new PointSymbolizer(Resources.SplitPoint, 10.0); + var pointCategory = new PointCategory + { + LegendText = "Segment Split", + Symbolizer = new PointSymbolizer(Resources.SplitPoint, 15), + SelectionSymbolizer = new PointSymbolizer(Resources.SplitPoint, 10.0) + }; pointCategory.SelectionSymbolizer.SetOutline(Color.Black, 2); scheme.AddCategory(pointCategory);