auftraggeber können editiert werden.

Beim Speichern des Projekt werden Auftraggber mit gespeichert
This commit is contained in:
2023-07-02 12:15:06 +02:00
parent 8b5d706db4
commit 40a0882631
9 changed files with 266 additions and 34 deletions

View File

@@ -14,35 +14,43 @@
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="300" />
<ColumnDefinition Width="450" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<!-- Stammdaten Grid -->
<Grid Grid.Column="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="Projektname" />
<Label Grid.Column="0" Grid.Row="1" Content="Erstelldatum" />
<Label Grid.Column="0" Grid.Row="2" Content="Strasse" />
<Label Grid.Column="0" Grid.Row="3" Content="Ort" />
<Label Grid.Column="0" Grid.Row="0" Content="Projektname" />
<Label Grid.Column="0" Grid.Row="1" Content="Erstelldatum" />
<Label Grid.Column="0" Grid.Row="2" Content="Strasse" />
<Label Grid.Column="0" Grid.Row="3" Content="Ort" />
<Label Grid.Column="0" Grid.Row="4" Content="Auftraggeber" />
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding ProjektName}" />
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Erstelldatum}" />
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Strasse}" />
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Ort}" />
<StackPanel Grid.ColumnSpan="2" Grid.Row="4">
<Button Content="Speichern" Command="{Binding Speichern}" />
</StackPanel>
<ContentPresenter Grid.Column="3" Grid.RowSpan="6" Content="{Binding ProjektSettingsViewModel}" />
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding ProjektName}" />
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Erstelldatum}" />
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Strasse}" />
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Ort}" />
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="4">
<Label Content="{Binding Auftraggeber.Name}" />
<Button Content="Ändern" Command="{Binding AuftraggeberChange}" />
</StackPanel>
<StackPanel Grid.ColumnSpan="2" Grid.Row="5">
<Button Content="Speichern" Command="{Binding Speichern}" />
</StackPanel>
</Grid>
<ContentPresenter Grid.Column="1" Content="{Binding ProjektSettingsViewModel}" />
</Grid>
</UserControl>