diff --git a/Casino/Blackjack.xaml b/Casino/Blackjack.xaml
deleted file mode 100644
index c3eb59c..0000000
--- a/Casino/Blackjack.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Casino/Blackjack.xaml.cs b/Casino/Blackjack.xaml.cs
deleted file mode 100644
index e5db01e..0000000
--- a/Casino/Blackjack.xaml.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-
-namespace Casino
-{
- ///
- /// Interaktionslogik für Blackjack.xaml
- ///
- public partial class Blackjack : Window
- {
- public Blackjack()
- {
- InitializeComponent();
- rand();
- LoadCard(55);
- }
-
- private void LoadCard(int Bild)
- {
- Database db = new Database();
- byte[] img = db.GetCardImage(Bild);//2-10
-
- Dealer_Bild_1.Source = ByteArrayToImage(img);
- }
-
- private BitmapImage ByteArrayToImage(byte[] bytes)
- {
- BitmapImage image = new BitmapImage();
- using (MemoryStream ms = new MemoryStream(bytes))
- {
- image.BeginInit();
- image.CacheOption = BitmapCacheOption.OnLoad;
- image.StreamSource = ms;
- image.EndInit();
- }
- return image;
- }
-
- private int rand()
- {
- Random ran = new Random();
- int temp = ran.Next(13, 66);
- Console.WriteLine(temp);
-
- return 0;
- }
- private void Hauptmenue(object sender, RoutedEventArgs e)
- {
- Close();
- }
-
- //Numberfeld
- 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)
- {
- e.Handled = !_regex.IsMatch(e.Text);
- }
-
- // Keine Spaces
- private void TextBox_OnPreviewKeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.Space)
- {
- e.Handled = true;
- }
- }
-
- //das man nichts reinkopieren kann außer Zahlen
- private void TextBox_Pasting(object sender, DataObjectPastingEventArgs e)
- {
- if (e.DataObject.GetDataPresent(typeof(String)))
- {
- var text = (String)e.DataObject.GetData((typeof(String)));
- if (!_regex.IsMatch((string)text))
- {
- e.CancelCommand();
- }
- }
- }
- }
-}
diff --git a/Casino/MainWindow.xaml b/Casino/MainWindow.xaml
index 73850d8..0967817 100644
--- a/Casino/MainWindow.xaml
+++ b/Casino/MainWindow.xaml
@@ -33,7 +33,6 @@
-
diff --git a/Casino/MainWindow.xaml.cs b/Casino/MainWindow.xaml.cs
index cf07856..ce0a642 100644
--- a/Casino/MainWindow.xaml.cs
+++ b/Casino/MainWindow.xaml.cs
@@ -35,12 +35,6 @@ namespace Casino
}
- private void Blackjack_Click(object sender, RoutedEventArgs e)
- {
- Blackjack slotsWindow = new Blackjack();
- slotsWindow.Show();
- }
-
private void Busfahrer_Click(object sender, RoutedEventArgs e)
{
Busfahrer slotsWindow = new Busfahrer();