using System; using System.Collections.Generic; using System.Drawing; using DelftTools.Shell.Core; using Wti.Data; using WtiFormsResources = Wti.Forms.Properties.Resources; using ApplicationResources = Wti.Plugin.Properties.Resources; namespace Wti.Plugin.FileImporter { /// /// Imports *.csv files having the following header pattern: /// 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 string Name { get { return WtiFormsResources.PipingSurfaceLinesCollectionName; } } public string Category { get { return ApplicationResources.WtiApplicationName; } } public Bitmap Image { get { return WtiFormsResources.PipingSurfaceLineIcon; } } public IEnumerable SupportedItemTypes { get { return new[] { typeof(IEnumerable) }; } } public bool CanImportOnRootLevel { get { return false; } } public string FileFilter { get { return String.Format("{0} {1}(*.csv)|*.csv", WtiFormsResources.PipingSurfaceLinesCollectionName, ApplicationResources.CsvFileName); } } public string TargetDataDirectory { get; set; } public bool ShouldCancel { get; set; } public ImportProgressChangedDelegate ProgressChanged { get; set; } public bool OpenViewAfterImport { get { return false; } } public bool CanImportOn(object targetObject) { throw new NotImplementedException(); } public object ImportItem(string path, object target = null) { throw new NotImplementedException(); } } }