Objektname wird hinzugefügt

This commit is contained in:
Husky
2018-06-30 22:26:56 +02:00
parent f8a85bdc68
commit 94067efce2
9 changed files with 98 additions and 50 deletions

View File

@@ -2,15 +2,18 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
//
// Zusammenfassung:
// Bietet die grundlegene Struktur für eine Sanierung
public abstract class Sanierung : INotifyPropertyChanged
{
Guid guid;
//Guid guid;
double tempAusen;
double tempKanal;
string wetter;
@@ -20,8 +23,9 @@ namespace KlassenBIB
bool hDReinigung;
DateTime hDReinigungDatum;
DateTime sanierungsDatum;
public Guid Guid { get => guid; set => guid = value; }
//public Guid Guid { get => guid; set => guid = value; }
public double TempAusen
{
get => tempAusen;
@@ -30,7 +34,7 @@ namespace KlassenBIB
if(tempAusen != value)
{
tempAusen = value;
NotifyPropertyChanged("");
NotifyPropertyChanged();
}
}
@@ -43,9 +47,9 @@ namespace KlassenBIB
public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; }
public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; }
public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; }
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(string propertyName)
private void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));