Daten können hinzugefügt
This commit is contained in:
34
KanSan/UI/Kunde/UCKundeEdit.xaml
Normal file
34
KanSan/UI/Kunde/UCKundeEdit.xaml
Normal file
@@ -0,0 +1,34 @@
|
||||
<UserControl x:Class="KanSan.UI.UCKundeEdit"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:KanSan.UI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Grid.Row="0">Vorname</Label>
|
||||
<Label Grid.Column="0" Grid.Row="1">Nachname</Label>
|
||||
<Label Grid.Column="0" Grid.Row="2">Strasse</Label>
|
||||
<Label Grid.Column="0" Grid.Row="3">Plz</Label>
|
||||
<Label Grid.Column="0" Grid.Row="4">Ort</Label>
|
||||
|
||||
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Vorname}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Nachname}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Strasse}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding PLZ}" />
|
||||
<TextBox Grid.Column="1" Grid.Row="4" Text="{Binding Ort}" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
44
KanSan/UI/Kunde/UCKundeEdit.xaml.cs
Normal file
44
KanSan/UI/Kunde/UCKundeEdit.xaml.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using KanSan.Base;
|
||||
using KanSan.Base.Models;
|
||||
using KanSan.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
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.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace KanSan.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für UCKundeEdit.xaml
|
||||
/// </summary>
|
||||
public partial class UCKundeEdit : UserControl
|
||||
{
|
||||
private Kunde kunde = null;
|
||||
private UnitOfWork unitOfWork = null;
|
||||
public UCKundeEdit(Kunde kunde)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.kunde = kunde;
|
||||
|
||||
unitOfWork = new UnitOfWork(new KanSanContext());
|
||||
|
||||
KundeViewModel kundeViewModel = new KundeViewModel(kunde);
|
||||
kundeViewModel.PropertyChanged += KundeViewModel_PropertyChanged;
|
||||
this.DataContext = kundeViewModel;
|
||||
}
|
||||
|
||||
private void KundeViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user