Index: Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicLocationConfigurationSettings.cs =================================================================== diff -u -rb976916052d8a44a1034e3a834bff70868bce365 -r27e236b0bdb79005bc1d9d6b4b78f7b3052c6086 --- Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicLocationConfigurationSettings.cs (.../HydraulicLocationConfigurationSettings.cs) (revision b976916052d8a44a1034e3a834bff70868bce365) +++ Riskeer/Common/src/Riskeer.Common.Data/Hydraulics/HydraulicLocationConfigurationSettings.cs (.../HydraulicLocationConfigurationSettings.cs) (revision 27e236b0bdb79005bc1d9d6b4b78f7b3052c6086) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using Riskeer.Common.Data.Properties; namespace Riskeer.Common.Data.Hydraulics { @@ -29,20 +28,7 @@ /// public class HydraulicLocationConfigurationSettings { - private bool canUsePreprocessor; - private bool usePreprocessor; - private string preprocessorDirectory; - /// - /// Creates a new instance of . - /// - /// is set to false. - public HydraulicLocationConfigurationSettings() - { - CanUsePreprocessor = false; - } - - /// /// Gets the file path. /// public string FilePath { get; private set; } @@ -98,77 +84,6 @@ public bool UsePreprocessorClosure { get; private set; } /// - /// Gets or sets a value indicating whether the Hydra-Ring preprocessor can be used. - /// - /// When setting this property to false, both - /// and are reset. - public bool CanUsePreprocessor - { - get - { - return canUsePreprocessor; - } - set - { - canUsePreprocessor = value; - - if (!canUsePreprocessor) - { - usePreprocessor = false; - preprocessorDirectory = null; - } - } - } - - /// - /// Gets or sets a value indicating whether the Hydra-Ring preprocessor must be used. - /// - /// Thrown when set while is false. - public bool UsePreprocessor - { - get - { - return usePreprocessor; - } - set - { - if (!CanUsePreprocessor) - { - throw new InvalidOperationException($"{nameof(CanUsePreprocessor)} is false."); - } - - usePreprocessor = value; - } - } - - /// - /// Gets or sets the Hydra-Ring preprocessor directory. - /// - /// Thrown when set while is false. - /// Thrown when setting a value that matches . - public string PreprocessorDirectory - { - get - { - return preprocessorDirectory; - } - set - { - if (!CanUsePreprocessor) - { - throw new InvalidOperationException($"{nameof(CanUsePreprocessor)} is false."); - } - - if (string.IsNullOrWhiteSpace(value)) - { - throw new ArgumentException(Resources.HydraulicBoundaryDatabase_PreprocessorDirectory_Path_must_have_a_value); - } - - preprocessorDirectory = value; - } - } - - /// /// Sets values to the . /// /// The file path. Index: Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs =================================================================== diff -u -r9e9976818f1b446948c3bf815cafe2e023f98ac1 -r27e236b0bdb79005bc1d9d6b4b78f7b3052c6086 --- Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 9e9976818f1b446948c3bf815cafe2e023f98ac1) +++ Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 27e236b0bdb79005bc1d9d6b4b78f7b3052c6086) @@ -500,15 +500,6 @@ } /// - /// Looks up a localized string similar to De bestandsmap waar de preprocessor bestanden opslaat moet een waarde hebben.. - /// - public static string HydraulicBoundaryDatabase_PreprocessorDirectory_Path_must_have_a_value { - get { - return ResourceManager.GetString("HydraulicBoundaryDatabase_PreprocessorDirectory_Path_must_have_a_value", resourceCulture); - } - } - - /// /// Looks up a localized string similar to Een illustratiepunt node in de foutenboom moet 0 of 2 onderliggende nodes hebben.. /// public static string IllustrationPointNode_SetChildren_Node_must_have_zero_or_two_child_nodes { Index: Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx =================================================================== diff -u -r90867e7b6ad6feb087aae90b940ee6e5df421bd0 -r27e236b0bdb79005bc1d9d6b4b78f7b3052c6086 --- Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx (.../Resources.resx) (revision 90867e7b6ad6feb087aae90b940ee6e5df421bd0) +++ Riskeer/Common/src/Riskeer.Common.Data/Properties/Resources.resx (.../Resources.resx) (revision 27e236b0bdb79005bc1d9d6b4b78f7b3052c6086) @@ -366,9 +366,6 @@ Het aandeel van de ondergrondschematisatie in het stochastische ondergrondmodel moet in het bereik {0} liggen. - - De bestandsmap waar de preprocessor bestanden opslaat moet een waarde hebben. - De waarde voor 'a' moet in het bereik {0} liggen.