MainWindow geändert, dynamische Menu erzeugt
This commit is contained in:
28
KanSan.ViewModel/SewerMainMenuViewModel.cs
Normal file
28
KanSan.ViewModel/SewerMainMenuViewModel.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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 string ObjektBezeichnung
|
||||
{
|
||||
get
|
||||
{
|
||||
return model.ObjektNummer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public SewerMainMenuViewModel(Sewer model)
|
||||
{
|
||||
if (model == null) throw new ArgumentNullException();
|
||||
this.model = model;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user