Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayerColorConversionHelper.cs
===================================================================
diff -u -r49f905d3363336d44ef828259692644dcf5f9edc -r8129f84fe18c49d8e7cbafcb16e8acf5dd08130b
--- Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayerColorConversionHelper.cs (.../SoilLayerColorConversionHelper.cs) (revision 49f905d3363336d44ef828259692644dcf5f9edc)
+++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Builders/SoilLayerColorConversionHelper.cs (.../SoilLayerColorConversionHelper.cs) (revision 8129f84fe18c49d8e7cbafcb16e8acf5dd08130b)
@@ -1,4 +1,25 @@
-using System;
+// Copyright (C) Stichting Deltares 2016. 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;
using System.Drawing;
namespace Ringtoets.Piping.IO.Builders
@@ -16,11 +37,7 @@
/// A instance based on the .
public static Color ColorFromNullableDouble(double? colorValue)
{
- if (colorValue == null)
- {
- return Color.Empty;
- }
- return Color.FromArgb(Convert.ToInt32(colorValue));
+ return colorValue == null ? Color.Empty : Color.FromArgb(Convert.ToInt32(colorValue));
}
}
}
\ No newline at end of file
Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayerColorConversionHelperTest.cs
===================================================================
diff -u -r49f905d3363336d44ef828259692644dcf5f9edc -r8129f84fe18c49d8e7cbafcb16e8acf5dd08130b
--- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayerColorConversionHelperTest.cs (.../SoilLayerColorConversionHelperTest.cs) (revision 49f905d3363336d44ef828259692644dcf5f9edc)
+++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayerColorConversionHelperTest.cs (.../SoilLayerColorConversionHelperTest.cs) (revision 8129f84fe18c49d8e7cbafcb16e8acf5dd08130b)
@@ -1,4 +1,25 @@
-using System.Drawing;
+// Copyright (C) Stichting Deltares 2016. 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 NUnit.Framework;
using Ringtoets.Piping.IO.Builders;