Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs
===================================================================
diff -u -rfea3332b5f7a5cea6b41de4a6368c1f1c2bf1282 -rdcd6469f6000957bc1604da8e92bd5ea09e43769
--- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs (.../PipingSurfaceLinesCsvImporter.cs) (revision fea3332b5f7a5cea6b41de4a6368c1f1c2bf1282)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs (.../PipingSurfaceLinesCsvImporter.cs) (revision dcd6469f6000957bc1604da8e92bd5ea09e43769)
@@ -24,6 +24,7 @@
using System.Drawing;
using System.IO;
using System.Linq;
+
using Core.Common.Base.Geometry;
using Core.Common.Base.IO;
using Core.Common.IO.Exceptions;
@@ -43,7 +44,7 @@
/// Id;X1;Y1;Z1;...(Xn;Yn;Zn)
/// Where Xn;Yn;Zn form the n-th 3D point describing the geometry of the surface line.
///
- public class PipingSurfaceLinesCsvImporter : IFileImporter
+ public class PipingSurfaceLinesCsvImporter : FileImporterBase
{
private readonly ILog log;
private bool shouldCancel;
@@ -54,39 +55,39 @@
log = LogManager.GetLogger(GetType());
}
- public string Name
+ public override string Name
{
get
{
return PipingFormsResources.PipingSurfaceLinesCollection_DisplayName;
}
}
- public string Category
+ public override string Category
{
get
{
return RingtoetsFormsResources.Ringtoets_Category;
}
}
- public Bitmap Image
+ public override Bitmap Image
{
get
{
return PipingFormsResources.PipingSurfaceLineIcon;
}
}
- public Type SupportedItemType
+ public override Type SupportedItemType
{
get
{
return typeof(ICollection);
}
}
- public string FileFilter
+ public override string FileFilter
{
get
{
@@ -95,17 +96,16 @@
}
}
- public ProgressChangedDelegate ProgressChanged { get; set; }
+ public override ProgressChangedDelegate ProgressChanged { protected get; set; }
- public void Cancel()
+ public override void Cancel()
{
shouldCancel = true;
}
- public bool Import(object targetItem, string filePath)
+ public override bool Import(object targetItem, string filePath)
{
var importSurfaceLinesResult = ReadPipingSurfaceLines(filePath);
-
if (importSurfaceLinesResult.CriticalErrorOccurred)
{
return false;