From 57886bdac72a73787e34fff9ba48457cd298b47c Mon Sep 17 00:00:00 2001 From: "NBTEMP\\bib" Date: Mon, 7 Sep 2026 15:09:09 +0200 Subject: [PATCH] =?UTF-8?q?Busfahrer=20oberfl=C3=A4che?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Casino/Busfahrer.xaml | 7 +++++-- Casino/Busfahrer.xaml.cs | 13 +++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Casino/Busfahrer.xaml b/Casino/Busfahrer.xaml index 7f05207..a7c7cfb 100644 --- a/Casino/Busfahrer.xaml +++ b/Casino/Busfahrer.xaml @@ -31,7 +31,10 @@ - - + + + + + diff --git a/Casino/Busfahrer.xaml.cs b/Casino/Busfahrer.xaml.cs index 1d437ef..44ac54e 100644 --- a/Casino/Busfahrer.xaml.cs +++ b/Casino/Busfahrer.xaml.cs @@ -20,18 +20,23 @@ namespace Casino /// public partial class Busfahrer : Window { + + public Busfahrer() { - rand(); - LoadCard(55); + InitializeComponent(); + + LoadCard(8); } private void LoadCard(int Bild) { Database db = new Database(); - byte[] img = db.GetCardImage(Bild);//2-10 + byte[] img = db.GetCardImage(Bild); + + Bild_4.Source = ByteArrayToImage(img); + - Bild_1.Source = ByteArrayToImage(img); } private BitmapImage ByteArrayToImage(byte[] bytes)