auftraggeber können editiert werden.
Beim Speichern des Projekt werden Auftraggber mit gespeichert
This commit is contained in:
37
StammGenerator/Views/Auftraggeber/AuftraggeberShow.xaml
Normal file
37
StammGenerator/Views/Auftraggeber/AuftraggeberShow.xaml
Normal file
@@ -0,0 +1,37 @@
|
||||
<Window x:Class="StammGenerator.Views.AuftraggeberShow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:StammGenerator.Views"
|
||||
mc:Ignorable="d"
|
||||
Title="AuftraggeberShow" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto" />
|
||||
<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" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Grid.Row="0" Margin="10" Content="Name" />
|
||||
<Label Grid.Column="0" Grid.Row="1" Margin="10" Content="Ansprechpartner" />
|
||||
<Label Grid.Column="0" Grid.Row="2" Margin="10" Content="Strasse" />
|
||||
<Label Grid.Column="0" Grid.Row="3" Margin="10" Content="Postleitzahl" />
|
||||
<Label Grid.Column="0" Grid.Row="4" Margin="10" Content="Ort" />
|
||||
<Label Grid.Column="0" Grid.Row="5" Margin="10" Content="Telefonnummer" />
|
||||
|
||||
<TextBox Grid.Column="1" Grid.Row="0" Margin="10" Text="{Binding Name}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="1" Margin="10" Text="{Binding Ansprechpartner}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="2" Margin="10" Text="{Binding Strasse}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="3" Margin="10" Text="{Binding Postleitzahl}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="4" Margin="10" Text="{Binding Ort}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="5" Margin="10" Text="{Binding Telefonnummer}" />
|
||||
</Grid>
|
||||
</Window>
|
||||
27
StammGenerator/Views/Auftraggeber/AuftraggeberShow.xaml.cs
Normal file
27
StammGenerator/Views/Auftraggeber/AuftraggeberShow.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace StammGenerator.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für AuftraggeberShow.xaml
|
||||
/// </summary>
|
||||
public partial class AuftraggeberShow : Window
|
||||
{
|
||||
public AuftraggeberShow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user