Files
Damian Wessels 1c4f581f28 EF core added
2023-01-14 12:20:47 +01:00

94 lines
3.0 KiB
C#

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 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 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));
}
}
}