Index: src/Deltares.DSoilModel.Forms/DSoilModelPlugin.cs =================================================================== diff -u -r63 -r72 --- src/Deltares.DSoilModel.Forms/DSoilModelPlugin.cs (.../DSoilModelPlugin.cs) (revision 63) +++ src/Deltares.DSoilModel.Forms/DSoilModelPlugin.cs (.../DSoilModelPlugin.cs) (revision 72) @@ -4,6 +4,7 @@ using System.Drawing; using System.IO; using System.Linq; +using System.Reflection; using System.Windows.Forms; using Deltares.DSoilModel.Data; using Deltares.Geographic; @@ -295,6 +296,10 @@ BindSupport.Assign(pluginPanel, this); ConfigureSoilMechanisms(); + + // by loading the settings dialog here, we can prevent it from showing the units tab page (temporary for WTI) + mainForm.CreateSettingsDialog(true, false); + } public void Assign(object source) Index: src/Deltares.DSoilModel.Forms/DSoilModelContext.cs =================================================================== diff -u -r6 -r72 --- src/Deltares.DSoilModel.Forms/DSoilModelContext.cs (.../DSoilModelContext.cs) (revision 6) +++ src/Deltares.DSoilModel.Forms/DSoilModelContext.cs (.../DSoilModelContext.cs) (revision 72) @@ -4,6 +4,7 @@ using Deltares.Geotechnics; using Deltares.Geotechnics.ConePenetrationTest; using Deltares.Standard.Attributes; +using Deltares.Standard.Forms.DExpress; using Deltares.Standard.Reflection; using Deltares.Standard.Reflection.Enumerator; @@ -227,6 +228,23 @@ public override bool? IsVisible(object source, string member) { + if (source is BaseControlBinding || source is GridViewControl) + { + // Make sure popup menu item for adaption of units is disabled in gridview. + if (member == "EditUnitCommand") + { + return false; + } + } + if (source is MainForm) + { + // hide units command from tools menu + if (member == "SelectUnits") + { + return false; + } + } + if (source is SosSoilLayer1D && member == ((SosSoilLayer1D)source).GetMemberName(x => x.BottomLevel)) { return false;