Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BorderedLabel.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BorderedLabel.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BorderedLabel.cs (revision 5140bb73fc70fbcb1064fa63171fde340e3f2e6d) @@ -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 BorderedLabel : Label + { + /// + /// Creates a new instance of . + /// + public BorderedLabel() + { + 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 Fisheye: Tag 5140bb73fc70fbcb1064fa63171fde340e3f2e6d refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/BoxedLabel.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.Designer.cs =================================================================== diff -u -rdd6bd3319a7d30fa0520e44f6818a579c217f720 -r5140bb73fc70fbcb1064fa63171fde340e3f2e6d --- Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.Designer.cs (.../FailureMechanismAssemblyResultControl.Designer.cs) (revision dd6bd3319a7d30fa0520e44f6818a579c217f720) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultControl.Designer.cs (.../FailureMechanismAssemblyResultControl.Designer.cs) (revision 5140bb73fc70fbcb1064fa63171fde340e3f2e6d) @@ -55,7 +55,7 @@ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FailureMechanismAssemblyResultControl)); this.GroupPanel = new System.Windows.Forms.TableLayoutPanel(); this.description = new System.Windows.Forms.Label(); - this.GroupLabel = new Ringtoets.Common.Forms.Controls.BoxedLabel(); + this.GroupLabel = new Ringtoets.Common.Forms.Controls.BorderedLabel(); this.ErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.GroupPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit(); @@ -102,7 +102,7 @@ #endregion private System.Windows.Forms.Label description; protected System.Windows.Forms.TableLayoutPanel GroupPanel; - protected BoxedLabel GroupLabel; + protected BorderedLabel GroupLabel; protected System.Windows.Forms.ErrorProvider ErrorProvider; } } Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultWithProbabilityControl.Designer.cs =================================================================== diff -u -r63e9a2120a4a108ecc8e954b48ec11d73b67eb02 -r5140bb73fc70fbcb1064fa63171fde340e3f2e6d --- Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultWithProbabilityControl.Designer.cs (.../FailureMechanismAssemblyResultWithProbabilityControl.Designer.cs) (revision 63e9a2120a4a108ecc8e954b48ec11d73b67eb02) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Controls/FailureMechanismAssemblyResultWithProbabilityControl.Designer.cs (.../FailureMechanismAssemblyResultWithProbabilityControl.Designer.cs) (revision 5140bb73fc70fbcb1064fa63171fde340e3f2e6d) @@ -52,7 +52,7 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FailureMechanismAssemblyResultWithProbabilityControl)); - this.probabilityLabel = new Ringtoets.Common.Forms.Controls.BoxedLabel(); + this.probabilityLabel = new Ringtoets.Common.Forms.Controls.BorderedLabel(); this.probabilityPanel = new System.Windows.Forms.TableLayoutPanel(); ((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit(); this.probabilityPanel.SuspendLayout(); @@ -85,7 +85,7 @@ } #endregion - private BoxedLabel probabilityLabel; + private BorderedLabel probabilityLabel; private System.Windows.Forms.TableLayoutPanel probabilityPanel; } } Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj =================================================================== diff -u -r5f7d2664694d3a9350f70b530268d1d755605e06 -r5140bb73fc70fbcb1064fa63171fde340e3f2e6d --- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 5f7d2664694d3a9350f70b530268d1d755605e06) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 5140bb73fc70fbcb1064fa63171fde340e3f2e6d) @@ -131,7 +131,7 @@ - + Component Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BorderedLabelTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BorderedLabelTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Controls/BorderedLabelTest.cs (revision 5140bb73fc70fbcb1064fa63171fde340e3f2e6d) @@ -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 BorderedLabelTest + { + [Test] + public void DefaultConstructor_ExpectedValues() + { + // Call + var borderedLabel = new BorderedLabel(); + + // Assert + Assert.IsInstanceOf