SchachtDataService hinzugefügt

This commit is contained in:
2023-04-13 14:08:48 +02:00
parent 047e036442
commit 47aba01cb4
28 changed files with 360 additions and 237 deletions

View File

@@ -14,6 +14,9 @@ namespace SewerStammGen.WPF.ViewModel.State
public int SchachtID { get; private set; }
public int HaltungID { get; private set; }
public Schacht SelectedSchacht { get; private set; }
public Kanal SelectedHaltung {get; private set; }
public void SetProjekt(Projekt projekt, bool notification = true)
{
@@ -25,6 +28,7 @@ namespace SewerStammGen.WPF.ViewModel.State
}
public void SetSchacht(Schacht schacht, bool notification = true)
{
SelectedSchacht = schacht;
SchachtID = schacht.Id;
if(notification)
{
@@ -33,6 +37,7 @@ namespace SewerStammGen.WPF.ViewModel.State
}
public void SetHaltung(Kanal haltung, bool notification = true)
{
SelectedHaltung = haltung;
HaltungID = haltung.Id;
if(notification)
{

View File

@@ -14,6 +14,8 @@ namespace SewerStammGen.WPF.ViewModel.State
int ProjektID { get; set; }
int SchachtID { get; }
int HaltungID { get; }
Schacht SelectedSchacht { get; }
Kanal SelectedHaltung { get; }
void SetProjekt(Projekt projekt, bool notification = true);
void SetSchacht(Schacht schacht, bool notification = true);