Imprägnierungen können gespeichert werden

This commit is contained in:
HuskyTeufel
2021-11-01 09:58:54 +01:00
parent b4a896f5bf
commit d4da9fd0da
4 changed files with 38 additions and 3 deletions

View File

@@ -80,7 +80,8 @@ namespace DaSaSo.Wpf.HostBuilders
services.AddTransient<CreateViewModel<ImpregnierungEditViewModel>>(services =>
{
return () => new ImpregnierungEditViewModel(
services.GetRequiredService<IActualProject>()
services.GetRequiredService<IActualProject>(),
services.GetRequiredService<IDataService<Impregnation>>()
);
});

View File

@@ -37,6 +37,6 @@
<TextBox Grid.Column="1" Grid.Row="5" Text="" />
<CheckBox Grid.Column="1" Grid.Row="6" Content="Ja" Style="{StaticResource checkBoxCircleSmall}"/>
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="Speichern" />
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="Speichern" Command="{Binding SaveImpregnation}" />
</Grid>
</UserControl>