Admin view hinzugefügt

This commit is contained in:
NBTEMP\bib
2026-09-14 19:20:37 +02:00
parent fbc37f3e2b
commit d8df625bac
8 changed files with 686 additions and 7 deletions
+127
View File
@@ -0,0 +1,127 @@
<Window x:Class="Casino.EditUserView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Benutzer bearbeiten"
Height="550"
Width="500"
WindowStartupLocation="CenterScreen">
<Grid Margin="25">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Überschrift -->
<TextBlock Grid.Row="0"
Text="Benutzer bearbeiten"
FontSize="28"
FontWeight="Bold"
HorizontalAlignment="Center"
Margin="0,0,0,25"/>
<!-- Name -->
<StackPanel Grid.Row="1"
Margin="0,5">
<TextBlock Text="Name"
FontWeight="Bold"/>
<TextBox x:Name="TxtName"
Height="35"/>
</StackPanel>
<!-- Alter -->
<StackPanel Grid.Row="2"
Margin="0,5">
<TextBlock Text="Alter"
FontWeight="Bold"/>
<TextBox x:Name="TxtAge"
Height="35"/>
</StackPanel>
<!-- Passwort -->
<StackPanel Grid.Row="3"
Margin="0,5">
<TextBlock Text="Neues Passwort"
FontWeight="Bold"/>
<PasswordBox x:Name="TxtPasswort"
Height="35"/>
<TextBlock Text="Leer lassen = Passwort nicht ändern"
FontSize="12"
Foreground="Gray"/>
</StackPanel>
<!-- Geld -->
<StackPanel Grid.Row="4"
Margin="0,5">
<TextBlock Text="Geld"
FontWeight="Bold"/>
<TextBox x:Name="TxtGeld"
Height="35"/>
</StackPanel>
<!-- Rolle -->
<StackPanel Grid.Row="5"
Margin="0,5">
<TextBlock Text="Rolle"
FontWeight="Bold"/>
<ComboBox x:Name="CmbRolle"
Height="35">
<ComboBoxItem Content="User"/>
<ComboBoxItem Content="Admin"/>
</ComboBox>
</StackPanel>
<!-- Buttons -->
<StackPanel Grid.Row="6"
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Margin="0,25,0,0">
<Button Content="Speichern"
Width="140"
Height="40"
Margin="10"
Click="BtnSpeichern_Click"/>
<Button Content="Abbrechen"
Width="140"
Height="40"
Margin="10"
Click="BtnAbbrechen_Click"/>
</StackPanel>
</Grid>
</Window>