diff --git a/SanSystem/KlassenBIB/Inspektionsobjekt.cs b/SanSystem/KlassenBIB/Inspektionsobjekt.cs index 8f7820e..fe04287 100644 --- a/SanSystem/KlassenBIB/Inspektionsobjekt.cs +++ b/SanSystem/KlassenBIB/Inspektionsobjekt.cs @@ -12,7 +12,7 @@ namespace KlassenBIB /// /// [ContentProperty("Sanierung")] - public class Inspektionsobjekt : IInspektionsobjekt + public class Inspektionsobjekt { private string strasseName = "none"; diff --git a/SanSystem/SanShared/IImportedObjekte.cs b/SanSystem/SanShared/IImportedObjekte.cs index 540ff8a..b8eedf7 100644 --- a/SanSystem/SanShared/IImportedObjekte.cs +++ b/SanSystem/SanShared/IImportedObjekte.cs @@ -1,4 +1,5 @@ -using System; +using KlassenBIB; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -23,6 +24,6 @@ namespace SanShared /// Funktion der die Inspektionsobjekte übergibt /// /// - List GetInspektionsobjekte(); + List GetInspektionsobjekte(); } } diff --git a/SanSystem/SanShared/IInspektionsobjekt.cs b/SanSystem/SanShared/IInspektionsobjekt.cs deleted file mode 100644 index 6520c4b..0000000 --- a/SanSystem/SanShared/IInspektionsobjekt.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SanShared -{ - public interface IInspektionsobjekt - { - } -} diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj index 9d3da39..401817a 100644 --- a/SanSystem/SanSystem.csproj +++ b/SanSystem/SanSystem.csproj @@ -347,7 +347,6 @@ - diff --git a/SanSystem/SchnittstelleImporter/I2006XML.cs b/SanSystem/SchnittstelleImporter/I2006XML.cs index a8b17ee..2066b0c 100644 --- a/SanSystem/SchnittstelleImporter/I2006XML.cs +++ b/SanSystem/SchnittstelleImporter/I2006XML.cs @@ -1,4 +1,5 @@ -using SanShared; +using KlassenBIB; +using SanShared; using SchnittstelleImporter.XML2006; using System; using System.Collections.Generic; @@ -15,7 +16,7 @@ namespace SchnittstelleImporter /// /// /// - public class I2006XML : IImportedObjekte + public class I2006XML : SanShared.IImportedObjekte { string xmlFile; string projektnummer; @@ -145,14 +146,14 @@ namespace SchnittstelleImporter /// /// /// - public List GetInspektionsobjekte() + public List GetInspektionsobjekte() { - /* - List result = new List(); + + List result = new List(); List anlagen = XMLParser.GetList(XMLFile); foreach(InspizierteAbwassertechnischeAnlage src in anlagen) { - IInspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); + Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln(); inspektionsobjekt.Projektnummer = projektnummer; @@ -192,8 +193,6 @@ namespace SchnittstelleImporter } return result; - */ - return new List(); } } } diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index d09c970..ada75b8 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -190,7 +190,7 @@ namespace SanSystem private void stammdatenImportierenToolStripMenuItem_Click(object sender, EventArgs e) { - /* + OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "XML Daten | *.xml"; if(Datenbank.Instance.loadedProjekt == null) @@ -202,7 +202,7 @@ namespace SanSystem { string path = openFileDialog.FileName; - IImportedObjekte importedObjekte = SchnittstelleImporter.ImportBuilder.Import(ImportSchnittstellen.XML2006); + SanShared.IImportedObjekte importedObjekte = SchnittstelleImporter.ImportBuilder.Import(ImportSchnittstellen.XML2006); importedObjekte.XMLFile = path;//@"C:\Users\Damian\Desktop\XML\3_Zustandsdaten\ISYBAU_XML-2006-Zustandsdaten_DIN_EN_13508-2.xml"; importedObjekte.Projektnummer = Global.Instance.ProjektNummer; Datenbank.Instance.loadedProjekt.Objekte.AddRange(importedObjekte.GetInspektionsobjekte()); @@ -221,7 +221,7 @@ namespace SanSystem strassenList.StartPosition = FormStartPosition.Manual; strassenList.Show(); } - */ + } private void auftraggeberToolStripMenuItem_Click(object sender, EventArgs e)