Admin edit clean up
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Überschrift -->
|
||||
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="Benutzer bearbeiten"
|
||||
FontSize="28"
|
||||
@@ -28,8 +26,6 @@
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,25"/>
|
||||
|
||||
<!-- Name -->
|
||||
|
||||
<StackPanel Grid.Row="1"
|
||||
Margin="0,5">
|
||||
|
||||
@@ -41,8 +37,6 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!-- Alter -->
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
Margin="0,5">
|
||||
|
||||
@@ -54,8 +48,6 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!-- Passwort -->
|
||||
|
||||
<StackPanel Grid.Row="3"
|
||||
Margin="0,5">
|
||||
|
||||
@@ -71,8 +63,6 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!-- Geld -->
|
||||
|
||||
<StackPanel Grid.Row="4"
|
||||
Margin="0,5">
|
||||
|
||||
@@ -84,8 +74,6 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!-- Rolle -->
|
||||
|
||||
<StackPanel Grid.Row="5"
|
||||
Margin="0,5">
|
||||
|
||||
@@ -102,8 +90,6 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!-- Buttons -->
|
||||
|
||||
<StackPanel Grid.Row="6"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
|
||||
@@ -34,13 +34,8 @@ namespace Casino
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// SPEICHERN
|
||||
// ==========================================
|
||||
|
||||
private void BtnSpeichern_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// Name prüfen
|
||||
if (string.IsNullOrWhiteSpace(TxtName.Text))
|
||||
{
|
||||
MessageBox.Show(
|
||||
@@ -78,7 +73,6 @@ namespace Casino
|
||||
return;
|
||||
}
|
||||
|
||||
// Rolle prüfen
|
||||
if (CmbRolle.SelectedItem is not ComboBoxItem selectedRoleItem)
|
||||
{
|
||||
MessageBox.Show(
|
||||
@@ -130,19 +124,11 @@ namespace Casino
|
||||
}
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// ABBRECHEN
|
||||
// ==========================================
|
||||
|
||||
private void BtnAbbrechen_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
// ==========================================
|
||||
// PASSWORT HASHEN
|
||||
// ==========================================
|
||||
|
||||
private static string HashPassword(string password)
|
||||
{
|
||||
using SHA256 sha256 = SHA256.Create();
|
||||
|
||||
Reference in New Issue
Block a user