66 lines
1.7 KiB
C#
66 lines
1.7 KiB
C#
using DaSaSo.Domain.Model;
|
|
using DaSaSo.ViewModel.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DaSaSo.ViewModel
|
|
{
|
|
public class SewerStammdatenViewModel : BaseViewModel
|
|
{
|
|
private readonly IActualProject _actualProject;
|
|
private SewerObject _model;
|
|
|
|
public string Haltungsname
|
|
{
|
|
get => _model.ObjektName;
|
|
set
|
|
{
|
|
if(_model.ObjektName != value)
|
|
{
|
|
_model.ObjektName = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
public string Oberepunkt { get; set; }
|
|
public string Unterepunkt { get; set; }
|
|
public string Durchmesser { get; set; }
|
|
public string Material { get; set; }
|
|
public decimal Leitungslenght {
|
|
get => _model.SewerLength;
|
|
set
|
|
{
|
|
if(_model.SewerLength != value)
|
|
{
|
|
_model.SewerLength = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
public string Strasse
|
|
{
|
|
get => _model.StreetName;
|
|
set
|
|
{
|
|
if (_model.StreetName != value)
|
|
{
|
|
_model.StreetName = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
public string Ort
|
|
{
|
|
get;set;
|
|
}
|
|
public SewerStammdatenViewModel(IActualProject actualProject)
|
|
{
|
|
_actualProject = actualProject;
|
|
_model = actualProject.AktuellSewerObject;
|
|
}
|
|
}
|
|
}
|