Files
Kansan/KanSan.ViewModel/SewerMainMenuViewModel.cs
2020-03-29 15:54:58 +02:00

34 lines
731 B
C#

using KanSan.Base.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace KanSan.ViewModel
{
public class SewerMainMenuViewModel : PropertyChangedClass,INotifyPropertyChanged
{
private Sewer model;
public Sewer Objekt
{
get => model;
}
public string ObjektBezeichnung
{
get
{
return string.Format("{0} ({1})",model.ObjektNummer,model.StrasseName);
}
}
public SewerMainMenuViewModel(Sewer model)
{
if (model == null) throw new ArgumentNullException();
this.model = model;
}
}
}