diff --git a/Casino/Blackjack.xaml b/Casino/Blackjack.xaml
index 34af542..ebcb8a6 100644
--- a/Casino/Blackjack.xaml
+++ b/Casino/Blackjack.xaml
@@ -35,6 +35,6 @@
-
+
diff --git a/Casino/Busfahrer.xaml b/Casino/Busfahrer.xaml
index 42355fb..e2cf2c8 100644
--- a/Casino/Busfahrer.xaml
+++ b/Casino/Busfahrer.xaml
@@ -36,7 +36,7 @@
-
+
diff --git a/Casino/Busfahrer.xaml.cs b/Casino/Busfahrer.xaml.cs
index c4224a7..c55bbf4 100644
--- a/Casino/Busfahrer.xaml.cs
+++ b/Casino/Busfahrer.xaml.cs
@@ -69,17 +69,17 @@ namespace Casino
}
-
- private static readonly Regex _regex = new Regex("[^0-9]+€"); // Regex to match non-numeric input
+ //Numberfield
+ private static readonly Regex _regex = new Regex("^[0-9]"); // Regex to match non-numeric input
//nur nummern
- private void TextBox_OnPreviewTextInput(object sender, TextCompositionEventArgs e)
+ private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
- e.Handled = !_regex.IsMatch(e.Text);
+ e.Handled = !_regex.IsMatch(e.Text);
}
// Keine Spaces
- private void TextBox_OnPreviewKeyDown(object sender, KeyEventArgs e)
+ private void TextBox_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Space)
{
@@ -99,5 +99,6 @@ namespace Casino
}
}
}
+
}
}
diff --git a/Casino/MainWindow.xaml.cs b/Casino/MainWindow.xaml.cs
index c4c4f2f..5ebfda5 100644
--- a/Casino/MainWindow.xaml.cs
+++ b/Casino/MainWindow.xaml.cs
@@ -43,7 +43,8 @@ namespace Casino
private void Busfahrer_Click(object sender, RoutedEventArgs e)
{
-
+ Busfahrer slotsWindow = new Busfahrer();
+ slotsWindow.Show();
}
}
}
\ No newline at end of file