Admin edit clean up

This commit is contained in:
2026-09-14 22:31:22 +02:00
parent 78a22d9c0e
commit 0a89009a93
2 changed files with 0 additions and 28 deletions
-14
View File
@@ -19,8 +19,6 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<!-- Überschrift -->
<TextBlock Grid.Row="0" <TextBlock Grid.Row="0"
Text="Benutzer bearbeiten" Text="Benutzer bearbeiten"
FontSize="28" FontSize="28"
@@ -28,8 +26,6 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
Margin="0,0,0,25"/> Margin="0,0,0,25"/>
<!-- Name -->
<StackPanel Grid.Row="1" <StackPanel Grid.Row="1"
Margin="0,5"> Margin="0,5">
@@ -41,8 +37,6 @@
</StackPanel> </StackPanel>
<!-- Alter -->
<StackPanel Grid.Row="2" <StackPanel Grid.Row="2"
Margin="0,5"> Margin="0,5">
@@ -54,8 +48,6 @@
</StackPanel> </StackPanel>
<!-- Passwort -->
<StackPanel Grid.Row="3" <StackPanel Grid.Row="3"
Margin="0,5"> Margin="0,5">
@@ -71,8 +63,6 @@
</StackPanel> </StackPanel>
<!-- Geld -->
<StackPanel Grid.Row="4" <StackPanel Grid.Row="4"
Margin="0,5"> Margin="0,5">
@@ -84,8 +74,6 @@
</StackPanel> </StackPanel>
<!-- Rolle -->
<StackPanel Grid.Row="5" <StackPanel Grid.Row="5"
Margin="0,5"> Margin="0,5">
@@ -102,8 +90,6 @@
</StackPanel> </StackPanel>
<!-- Buttons -->
<StackPanel Grid.Row="6" <StackPanel Grid.Row="6"
Orientation="Horizontal" Orientation="Horizontal"
HorizontalAlignment="Center" HorizontalAlignment="Center"
-14
View File
@@ -34,13 +34,8 @@ namespace Casino
} }
} }
// ==========================================
// SPEICHERN
// ==========================================
private void BtnSpeichern_Click(object sender, RoutedEventArgs e) private void BtnSpeichern_Click(object sender, RoutedEventArgs e)
{ {
// Name prüfen
if (string.IsNullOrWhiteSpace(TxtName.Text)) if (string.IsNullOrWhiteSpace(TxtName.Text))
{ {
MessageBox.Show( MessageBox.Show(
@@ -78,7 +73,6 @@ namespace Casino
return; return;
} }
// Rolle prüfen
if (CmbRolle.SelectedItem is not ComboBoxItem selectedRoleItem) if (CmbRolle.SelectedItem is not ComboBoxItem selectedRoleItem)
{ {
MessageBox.Show( MessageBox.Show(
@@ -130,19 +124,11 @@ namespace Casino
} }
} }
// ==========================================
// ABBRECHEN
// ==========================================
private void BtnAbbrechen_Click(object sender, RoutedEventArgs e) private void BtnAbbrechen_Click(object sender, RoutedEventArgs e)
{ {
Close(); Close();
} }
// ==========================================
// PASSWORT HASHEN
// ==========================================
private static string HashPassword(string password) private static string HashPassword(string password)
{ {
using SHA256 sha256 = SHA256.Create(); using SHA256 sha256 = SHA256.Create();