Umstrukturierungen
This commit is contained in:
93
KlassenBIB/Sanierung/Sanierung.cs
Normal file
93
KlassenBIB/Sanierung/Sanierung.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KlassenBIB
|
||||
{
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[Browsable(false)]
|
||||
public abstract class Sanierung : INotifyPropertyChanged
|
||||
{
|
||||
Guid guid;
|
||||
double tempAusen;
|
||||
double tempKanal;
|
||||
string wetter;
|
||||
bool genehmigungVorhanden;
|
||||
bool wasserhaltungEingerichtet;
|
||||
bool sTVOAbsicherung;
|
||||
bool hDReinigung;
|
||||
bool vorbereitetMechanisch;
|
||||
bool vorbereitetRoboter;
|
||||
DateTime hDReinigungDatum;
|
||||
//DateTime sanierungsDatum;
|
||||
Inspektionsobjekt inspektionsobjekt;
|
||||
|
||||
protected string pfadZurSan;
|
||||
|
||||
[Browsable(false)]
|
||||
public Sanierung()
|
||||
{
|
||||
//if (inspektionsobjekt == null) return;
|
||||
//pfadZurSan = string.Format();
|
||||
|
||||
|
||||
}
|
||||
|
||||
public abstract string CheckVerzeichnisse(string projektpfad);
|
||||
|
||||
public Guid Guid { get => guid; set => guid = value; }
|
||||
|
||||
public double TempAusen
|
||||
{
|
||||
get => tempAusen;
|
||||
set
|
||||
{
|
||||
if(tempAusen != value)
|
||||
{
|
||||
tempAusen = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public double TempKanal { get => tempKanal; set => tempKanal = value; }
|
||||
|
||||
public string Wetter { get => wetter; set => wetter = value; }
|
||||
|
||||
public bool GenehmigungVorhanden { get => genehmigungVorhanden; set => genehmigungVorhanden = value; }
|
||||
|
||||
public bool WasserhaltungEingerichtet { get => wasserhaltungEingerichtet; set => wasserhaltungEingerichtet = value; }
|
||||
|
||||
public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; }
|
||||
|
||||
public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; }
|
||||
|
||||
public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; }
|
||||
|
||||
public Inspektionsobjekt Inspektionsobjekt { get => inspektionsobjekt; set => inspektionsobjekt = value; }
|
||||
|
||||
protected string PfadZurSan {
|
||||
get
|
||||
{
|
||||
return string.Format("{0}-{1}", Inspektionsobjekt.VonPunkt, Inspektionsobjekt.BisPunkt);
|
||||
}
|
||||
}
|
||||
|
||||
public bool VorbereitetMechanisch { get => vorbereitetMechanisch; set => vorbereitetMechanisch = value; }
|
||||
|
||||
public bool VorbereitetRoboter { get => vorbereitetRoboter; set => vorbereitetRoboter = value; }
|
||||
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
private void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
|
||||
{
|
||||
if (PropertyChanged != null)
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user