RoutineType wird nicht richtig geupdatet

This commit is contained in:
2026-06-03 13:05:34 +02:00
parent d38c504321
commit 1b0085f67b
4 changed files with 5 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
<Setter Property="Height" Value="23" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style

View File

@@ -80,7 +80,7 @@
<comboboxes:ComboBoxEmployeeSearch
Grid.Row="3"
Grid.Column="2"
Margin="3"
Margin="3,6,3,6"
IsEnabled="False"
SelectedCompactEmployeeDC="{Binding PromptVM.Creator, ElementName=root}" />
@@ -96,7 +96,7 @@
<dxe:CheckEdit
Grid.Row="5"
Grid.Column="2"
Margin="3"
Margin="3,0,3,0"
IsChecked="{Binding PromptVM.IsFavorite, ElementName=root}"
IsEnabled="true" />

View File

@@ -68,6 +68,7 @@ namespace BeWo.ViewModel
protected abstract DCType MapToDataContract(DCType pDataContract, bool doCommit);
// Methode dient dem aktualiseren eines existierendes VM mit einem neuen DC (z.B. Serverupdate)
public virtual void UpdateByDataContract(DCType pDataContract)
{
throw new NotImplementedException();

View File

@@ -143,6 +143,7 @@ namespace BeWo.ViewModel
Description = pDataContract.Description;
IsPublic = pDataContract.IsPublic;
IsFavorite = pDataContract.IsFavorite;
RoutineType = pDataContract.RoutineType;
Steps.UpdateByDataContracts(pDataContract.Steps);
}