Vorbereitungen werden in Schlauchliner gespeichert

This commit is contained in:
HuskyTeufel
2021-10-15 09:10:32 +02:00
parent ba51c3bde6
commit 3b97a912bc
3 changed files with 6 additions and 6 deletions

View File

@@ -83,5 +83,10 @@ namespace DaSaSo.ViewModel.Controls
SewerPreperationControllViewModel = new SewerPreperationControllViewModel(model.PreparationType); SewerPreperationControllViewModel = new SewerPreperationControllViewModel(model.PreparationType);
_date = model.Date.ToDateTime(new TimeOnly(0)); _date = model.Date.ToDateTime(new TimeOnly(0));
} }
public override void Dispose()
{
model.PreparationType = SewerPreperationControllViewModel.CalculatePreparationFlags();
base.Dispose();
}
} }
} }

View File

@@ -117,6 +117,7 @@ namespace DaSaSo.ViewModel
//Model.PreparationType = preparationFlags; //Model.PreparationType = preparationFlags;
//SewerPreperationControllViewModel.Dispose(); //SewerPreperationControllViewModel.Dispose();
//Debugger.Break(); //Debugger.Break();
SewerRhebalationControllViewModel.Dispose();
base.Dispose(); base.Dispose();
} }
} }

View File

@@ -31,16 +31,10 @@
<TextBlock Text="] Hausnummer [" /> <TextBlock Text="] Hausnummer [" />
<TextBlock Text="{Binding Hausnummer}" Foreground="Red" /> <TextBlock Text="{Binding Hausnummer}" Foreground="Red" />
<TextBlock Text="] Haltung [" /> <TextBlock Text="] Haltung [" />
<!--<TextBlock Text="[" />-->
<TextBlock Foreground="Blue" Text="{Binding ObjektName}" /> <TextBlock Foreground="Blue" Text="{Binding ObjektName}" />
<TextBlock Text="] DN [" /> <TextBlock Text="] DN [" />
<TextBlock Text="{Binding DN}" Foreground="Blue" /> <TextBlock Text="{Binding DN}" Foreground="Blue" />
<TextBlock Text="]" /> <TextBlock Text="]" />
<!--
<TextBlock Text="] Material [" />
<TextBlock Text="{Binding Material}" Foreground="Blue" />
<TextBlock Text="]" />
-->
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
<Style TargetType="{x:Type TreeViewItem}"> <Style TargetType="{x:Type TreeViewItem}">