felder Frieren nun nicht mehr ein, problem lag beim Databinding. Fand Statt im on load methode, dies führte dazu dass beim datumpicker, der noch nicht angezeigt wurde, die felder einfrieren.

Schnittstelle für Temperatur erweitert.

Beim schließen des forms, wird die Straßenliste neugebaut
This commit is contained in:
Husky
2018-06-30 11:58:42 +02:00
parent 8cf246893b
commit 322cd4c991
13 changed files with 491 additions and 364 deletions

View File

@@ -1,12 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
public abstract class Sanierung
public abstract class Sanierung : INotifyPropertyChanged
{
Guid guid;
@@ -19,10 +20,21 @@ namespace KlassenBIB
bool hDReinigung;
DateTime hDReinigungDatum;
DateTime sanierungsDatum;
Inspektionsobjekt inspektionsObjekt;
public Guid Guid { get => guid; set => guid = value; }
public double TempAusen { get => tempAusen; set => tempAusen = 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; }
@@ -31,6 +43,12 @@ 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 Inspektionsobjekt InspektionsObjekt { get => inspektionsObjekt; set => inspektionsObjekt = value; }
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}