RoutineType wird nicht richtig geupdatet
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -143,6 +143,7 @@ namespace BeWo.ViewModel
|
||||
Description = pDataContract.Description;
|
||||
IsPublic = pDataContract.IsPublic;
|
||||
IsFavorite = pDataContract.IsFavorite;
|
||||
RoutineType = pDataContract.RoutineType;
|
||||
|
||||
Steps.UpdateByDataContracts(pDataContract.Steps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user