Index: src/Deltares.DSoilModel.Forms/DSoilModelSegmentGeometryEditor.cs
===================================================================
diff -u -r388 -r424
--- src/Deltares.DSoilModel.Forms/DSoilModelSegmentGeometryEditor.cs (.../DSoilModelSegmentGeometryEditor.cs) (revision 388)
+++ src/Deltares.DSoilModel.Forms/DSoilModelSegmentGeometryEditor.cs (.../DSoilModelSegmentGeometryEditor.cs) (revision 424)
@@ -161,23 +161,9 @@
return true;
}
- ///
- /// Property for binding of Split segment toolbar button.
- /// So even when it seems not used, it is used!
- ///
- ///
- /// true if [split segment location]; otherwise, false.
- ///
- private bool SplitSegmentLocation
+ private void SplitSegmentLocation()
{
- get
- {
- return false;
- }
- set
- {
- AddSoilSegmentSplitLocation();
- }
+ AddSoilSegmentSplitLocation();
}
private void AddSoilSegmentSplitLocation(SoilSegmentSplitLocation splitter = null)
@@ -428,8 +414,7 @@
{
// Add button to be able to insert a segment split location
var splitButton = geometryEditor.CreateButton(Resources.SplitSegment);
- splitButton.Caption = LocalizationManager.GetTranslatedText(this, "SplitSegmentLocation");
- BindSupport.Bind(panel, splitButton, typeof(DSoilModelSegmentGeometryEditor), "SplitSegmentLocation");
+ BindSupport.Bind(panel, splitButton, ge => ge.SplitSegmentLocation());
// Add popup context menu for performing the actual split action
var splitSegmentMenuItem = new ToolStripMenuItem("Split Segment");