Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BoxedLabel.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BoxedLabel.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BoxedLabel.cs (revision 05aa333abfabb4cfdc3292f2ea0d4508aef20d28)
@@ -0,0 +1,45 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace Ringtoets.Common.Forms.Controls
+{
+ ///
+ /// Custom control with a border.
+ ///
+ public sealed class BoxedLabel : Label
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public BoxedLabel()
+ {
+ AutoSize = true;
+ BorderStyle = BorderStyle.FixedSingle;
+ Dock = DockStyle.Fill;
+ MinimumSize = new Size(50, 0);
+ Padding = new Padding(5, 0, 5, 0);
+ TextAlign = ContentAlignment.MiddleLeft;
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj
===================================================================
diff -u -r4b5247bbd278f66bb4536a0c92beb667e46a11c3 -r05aa333abfabb4cfdc3292f2ea0d4508aef20d28
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 4b5247bbd278f66bb4536a0c92beb667e46a11c3)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 05aa333abfabb4cfdc3292f2ea0d4508aef20d28)
@@ -131,6 +131,9 @@
+
+ Component
+
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BoxedLabelTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BoxedLabelTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BoxedLabelTest.cs (revision 05aa333abfabb4cfdc3292f2ea0d4508aef20d28)
@@ -0,0 +1,48 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Drawing;
+using System.Windows.Forms;
+using NUnit.Framework;
+using Ringtoets.Common.Forms.Controls;
+
+namespace Ringtoets.Common.Forms.Test.Controls
+{
+ [TestFixture]
+ public class BoxedLabelTest
+ {
+ [Test]
+ public void DefaultConstructor_ExpectedValues()
+ {
+ // Call
+ var boxedLabel = new BoxedLabel();
+
+ // Assert
+ Assert.IsInstanceOf