Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.cs =================================================================== diff -u -r9c341ce32f55de21dcc7ab33717e1750c437fb0e -re066f6fce8df4604082ede0fcd13921a8d66c560 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.cs (.../FailureMechanismAssemblyResultControl.cs) (revision 9c341ce32f55de21dcc7ab33717e1750c437fb0e) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.cs (.../FailureMechanismAssemblyResultControl.cs) (revision e066f6fce8df4604082ede0fcd13921a8d66c560) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Windows.Forms; namespace Ringtoets.Common.Forms.Controls @@ -35,5 +36,20 @@ { InitializeComponent(); } + + public void ClearError() + { + ErrorProvider.SetError(this, string.Empty); + } + + public void SetError(string error) + { + if (error == null) + { + throw new ArgumentNullException(nameof(error)); + } + + ErrorProvider.SetError(this, error); + } } } \ No newline at end of file