Namelist
This commit is contained in:
@@ -8,5 +8,102 @@ namespace Apollon.WPF.ViewModels
|
||||
{
|
||||
public class NameListViewModel : ViewModelBase
|
||||
{
|
||||
}
|
||||
private string _firstName;
|
||||
public string FirstName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _firstName;
|
||||
}
|
||||
set
|
||||
{
|
||||
_firstName = value;
|
||||
OnPropertyChanged(nameof(FirstName));
|
||||
}
|
||||
}
|
||||
|
||||
private string _lastName;
|
||||
public string LastName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _lastName;
|
||||
}
|
||||
set
|
||||
{
|
||||
_lastName = value;
|
||||
OnPropertyChanged(nameof(LastName));
|
||||
}
|
||||
}
|
||||
|
||||
private int _passNumber;
|
||||
public int PassNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return _passNumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
_passNumber = value;
|
||||
OnPropertyChanged(nameof(PassNumber));
|
||||
}
|
||||
}
|
||||
|
||||
private string _society;
|
||||
public string Society
|
||||
{
|
||||
get
|
||||
{
|
||||
return _society;
|
||||
}
|
||||
set
|
||||
{
|
||||
_society = value;
|
||||
OnPropertyChanged(nameof(Society));
|
||||
}
|
||||
}
|
||||
|
||||
private int _societyNumber;
|
||||
public int SocietyNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return _societyNumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
_societyNumber = value;
|
||||
OnPropertyChanged(nameof(SocietyNumber));
|
||||
}
|
||||
}
|
||||
|
||||
private string _birthday;
|
||||
public string Birthday
|
||||
{
|
||||
get
|
||||
{
|
||||
return _birthday;
|
||||
}
|
||||
set
|
||||
{
|
||||
_birthday = value;
|
||||
OnPropertyChanged(nameof(Birthday));
|
||||
}
|
||||
}
|
||||
|
||||
private string _country;
|
||||
public string Country
|
||||
{
|
||||
get
|
||||
{
|
||||
return _country;
|
||||
}
|
||||
set
|
||||
{
|
||||
_country = value;
|
||||
OnPropertyChanged(nameof(Country));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,12 +4,22 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<TextBlock Text="Stammdaten"
|
||||
FontSize="30"
|
||||
TextAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
mc:Ignorable="d">
|
||||
<Grid Margin="35">
|
||||
<DataGrid FontSize="14"
|
||||
HorizontalAlignment="Center"
|
||||
CanUserAddRows="True"
|
||||
AutoGenerateColumns="True">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Width="120" Header="Vorname" Binding="{Binding FirstName}"/>
|
||||
<DataGridTextColumn Width="120" Header="Nachname" Binding="{Binding LastName}" />
|
||||
<DataGridTextColumn Width="120" Header="Passnummer" Binding="{Binding PassNumber}"/>
|
||||
<DataGridTextColumn Width="150" Header="Verein" Binding="{Binding Society}" />
|
||||
<DataGridTextColumn Width="120" Header="Vereinsnummer" Binding="{Binding SocietyNumber}"/>
|
||||
<DataGridTextColumn Width="100" Header="Geburtsdatum" Binding="{Binding Birthday}" />
|
||||
<DataGridTextColumn Header="Bundesland" Binding="{Binding Country}"/>
|
||||
</DataGrid.Columns>
|
||||
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user