Bilder können jetzt hinterlegt werden

This commit is contained in:
Husky
2018-07-01 16:28:13 +02:00
parent 88af76b01f
commit 78ccc768df
11 changed files with 468 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
public class BilderCollection : List<SavedBilder>
{
}
}

View File

@@ -42,6 +42,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="AbwasserTechnischeAnlageCollection.cs" />
<Compile Include="BilderCollection.cs" />
<Compile Include="InlinerSanierung.cs" />
<Compile Include="Projekt.cs" />
<Compile Include="Inspektionskuerzeln.cs" />
@@ -51,6 +52,7 @@
<Compile Include="Sanieren.cs" />
<Compile Include="Sanierung.cs" />
<Compile Include="SanierungCollection.cs" />
<Compile Include="SavedBilder.cs" />
<Compile Include="SchachtAnbindung.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

20
KlassenBIB/SavedBilder.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
public class SavedBilder
{
public string Bildname { get; set; }
public string Speicherpfad { get; set; }
public string Bemerkung { get; set; }
public override string ToString()
{
return Bildname;
}
}
}

View File

@@ -9,11 +9,21 @@ namespace KlassenBIB
{
public class SchachtAnbindung : Sanieren
{
string schachtNummer;
BilderCollection savedBilders;
#region GettersSetters
public string SchachtNummer { get => schachtNummer; set => schachtNummer = value; }
public BilderCollection SavedBilders { get => savedBilders; set => savedBilders = value; }
#endregion
public SchachtAnbindung()
{
Verzeichnispfad = "Schachtanbindung";
SavedBilders = new BilderCollection();
}
public override string CheckVerzeichnisse(string projektpfad)
{
string path = Path.Combine(projektpfad, PfadZurSan);