add a form for the customer to the WPFClient
This commit is contained in:
parent
a849911345
commit
d380c8ecee
|
@ -0,0 +1,27 @@
|
||||||
|
<Window x:Class="WPFClient.CustomerDetails"
|
||||||
|
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:WPFClient"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="CustomerDetails" Height="398" Width="350">
|
||||||
|
<Grid>
|
||||||
|
<TextBox x:Name="TextBoxFirstName" HorizontalAlignment="Left" Height="23" Margin="111,122,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<ComboBox x:Name="DropDownSalutation" HorizontalAlignment="Left" Margin="111,28,0,0" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<ComboBox x:Name="DropDownGender" HorizontalAlignment="Left" Margin="111,71,0,0" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<TextBox x:Name="TextBoxLastName" HorizontalAlignment="Left" Height="23" Margin="111,164,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<TextBox x:Name="TextBoxStreetnumber" HorizontalAlignment="Left" Height="23" Margin="111,244,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<TextBox x:Name="TextBoxStreename" HorizontalAlignment="Left" Height="23" Margin="111,203,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<Button Content="Save" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" RenderTransformOrigin="2.21,19.718" Margin="111,322,0,0"/>
|
||||||
|
<ComboBox x:Name="DropDownCity" HorizontalAlignment="Left" Margin="111,281,0,0" VerticalAlignment="Top" Width="120"/>
|
||||||
|
<Label Content="Salutation" HorizontalAlignment="Left" Margin="24,24,0,0" VerticalAlignment="Top"/>
|
||||||
|
<Label Content="Gender" HorizontalAlignment="Left" Margin="24,67,0,0" VerticalAlignment="Top"/>
|
||||||
|
<Label Content="Lastname" HorizontalAlignment="Left" Margin="24,161,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.434,2.077"/>
|
||||||
|
<Label Content="Firstname" HorizontalAlignment="Left" Margin="24,119,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.434,2.077"/>
|
||||||
|
<Label Content="Streetname" HorizontalAlignment="Left" Margin="24,200,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.434,2.077"/>
|
||||||
|
<Label Content="Streetnumber" HorizontalAlignment="Left" Margin="24,241,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.434,2.077"/>
|
||||||
|
<Label Content="City" HorizontalAlignment="Left" Margin="24,277,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.434,2.077"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
|
@ -0,0 +1,34 @@
|
||||||
|
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;
|
||||||
|
using WPFClient.PlattformService;
|
||||||
|
|
||||||
|
namespace WPFClient
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for CustomerDetails.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class CustomerDetails : Window
|
||||||
|
{
|
||||||
|
public Person person { get; set; }
|
||||||
|
public CustomerDetails()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -54,6 +54,10 @@
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
|
<Page Include="CustomerDetails.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="MainWindow.xaml">
|
<Page Include="MainWindow.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
@ -62,6 +66,9 @@
|
||||||
<DependentUpon>App.xaml</DependentUpon>
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="CustomerDetails.xaml.cs">
|
||||||
|
<DependentUpon>CustomerDetails.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="MainWindow.xaml.cs">
|
<Compile Include="MainWindow.xaml.cs">
|
||||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
|
|
Loading…
Reference in New Issue