Daten können hinzugefügt

This commit is contained in:
Husky
2020-02-20 21:32:36 +01:00
parent 10ea0783e7
commit 954ffb4bc8
34 changed files with 861 additions and 715 deletions

View File

@@ -0,0 +1,68 @@
using KanSan.Base.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
namespace KanSan.ViewModel
{
class BaustelleViewModel : PropertyChangedClass,INotifyPropertyChanged
{
private Baustelle _baustelle;
private string ort;
private string strasse;
private string projektnummer;
public string Ort
{
get
{
return ort;
}
set
{
if (ort == value) return;
ort = value;
OnPropertyChanged();
}
}
public string Strasse
{
get
{
return strasse;
}
set
{
if (strasse == value) return;
strasse = value;
OnPropertyChanged();
}
}
public string Projektnummer
{
get
{
return projektnummer;
}
set
{
if (projektnummer == value) return;
projektnummer = value;
OnPropertyChanged();
}
}
public BaustelleViewModel(Baustelle baustelle)
{
_baustelle = baustelle;
ort = _baustelle.Ort;
strasse = _baustelle.Strasse;
projektnummer = _baustelle.Projektnummer;
}
}
}