Index: Ringtoets/Common/src/Ringtoets.Common.Data/Calculation/CalculationGroup.cs
===================================================================
diff -u -r07f3d67fe9512b3c8303ff09398b0a234900d546 -r43b4218e6e71896eb4f3985555258caeb4c7f6f7
--- Ringtoets/Common/src/Ringtoets.Common.Data/Calculation/CalculationGroup.cs (.../CalculationGroup.cs) (revision 07f3d67fe9512b3c8303ff09398b0a234900d546)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/Calculation/CalculationGroup.cs (.../CalculationGroup.cs) (revision 43b4218e6e71896eb4f3985555258caeb4c7f6f7)
@@ -19,7 +19,6 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
-using System;
using System.Collections.Generic;
using System.Linq;
using Core.Common.Base;
@@ -32,51 +31,28 @@
///
public class CalculationGroup : CloneableObservable, ICalculationBase
{
- private string name;
-
///
/// Creates a new instance of the class
- /// with an editable name.
+ /// with a default name.
///
- public CalculationGroup() : this(Resources.CalculationGroup_DefaultName, true) {}
+ public CalculationGroup() : this(Resources.CalculationGroup_DefaultName) {}
///
/// Creates a new instance of the class.
///
/// The name of the group.
- /// Determines if the name of the group is editable (true) or not.
- public CalculationGroup(string newName, bool canEditName)
+ public CalculationGroup(string newName)
{
- name = newName;
- IsNameEditable = canEditName;
+ Name = newName;
Children = new List();
}
///
- /// Gets a value indicating whether or not is editable.
- ///
- public bool IsNameEditable { get; }
-
- ///
/// Gets the children that define this group.
///
public List Children { get; private set; }
- public string Name
- {
- get
- {
- return name;
- }
- set
- {
- if (!IsNameEditable)
- {
- throw new InvalidOperationException(Resources.CalculationGroup_Setting_readonly_name_error_message);
- }
- name = value;
- }
- }
+ public string Name { get; set; }
public override object Clone()
{