Admin view hinzugefügt
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
<Window x:Class="Casino.AdminView"
|
||||
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:Casino"
|
||||
mc:Ignorable="d"
|
||||
Title="Adminbereich"
|
||||
Height="700"
|
||||
Width="1100"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
|
||||
<Grid Margin="20">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Überschrift -->
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="Adminbereich"
|
||||
FontSize="30"
|
||||
FontWeight="Bold"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,20"/>
|
||||
|
||||
<!-- Nutzerliste -->
|
||||
<DataGrid x:Name="UserDataGrid"
|
||||
Grid.Row="1"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
SelectionMode="Single"
|
||||
CanUserAddRows="False"
|
||||
Margin="0,0,0,20">
|
||||
|
||||
<DataGrid.Columns>
|
||||
|
||||
<DataGridTextColumn Header="ID"
|
||||
Binding="{Binding ID}"
|
||||
Width="220"/>
|
||||
|
||||
<DataGridTextColumn Header="Name"
|
||||
Binding="{Binding Name}"
|
||||
Width="150"/>
|
||||
|
||||
<DataGridTextColumn Header="Alter"
|
||||
Binding="{Binding Age}"
|
||||
Width="80"/>
|
||||
|
||||
<DataGridTextColumn Header="Passwort"
|
||||
Binding="{Binding Passwort}"
|
||||
Width="280"/>
|
||||
|
||||
<DataGridTextColumn Header="Geld"
|
||||
Binding="{Binding Geld}"
|
||||
Width="100"/>
|
||||
|
||||
<DataGridTextColumn Header="Rolle"
|
||||
Binding="{Binding Rolle}"
|
||||
Width="100"/>
|
||||
|
||||
</DataGrid.Columns>
|
||||
|
||||
</DataGrid>
|
||||
|
||||
<!-- Buttons -->
|
||||
<StackPanel Grid.Row="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
|
||||
<Button x:Name="BtnBearbeiten"
|
||||
Content="Bearbeiten"
|
||||
Width="150"
|
||||
Height="45"
|
||||
Margin="10"
|
||||
Click="BtnBearbeiten_Click"/>
|
||||
|
||||
<Button x:Name="BtnLoeschen"
|
||||
Content="Löschen"
|
||||
Width="150"
|
||||
Height="45"
|
||||
Margin="10"
|
||||
Click="BtnLoeschen_Click"/>
|
||||
|
||||
<Button Content="Aktualisieren"
|
||||
Width="150"
|
||||
Height="45"
|
||||
Margin="10"
|
||||
Click="BtnAktualisieren_Click"/>
|
||||
|
||||
<Button Content="Schließen"
|
||||
Width="150"
|
||||
Height="45"
|
||||
Margin="10"
|
||||
Click="BtnSchliessen_Click"/>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user