Bilder upload

This commit is contained in:
2026-09-01 10:46:20 +02:00
4 changed files with 16 additions and 19 deletions
+6 -1
View File
@@ -13,6 +13,7 @@ using System.Windows.Input;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using System.Windows.Shapes; using System.Windows.Shapes;
using Mysqlx.Cursor;
namespace Casino namespace Casino
{ {
@@ -33,7 +34,11 @@ namespace Casino
{ {
if (checkLogin(TxtName.Text, TxtPasswort.Text)) if (checkLogin(TxtName.Text, TxtPasswort.Text))
{ {
DialogResult = true;
MainWindow mainWindow = new MainWindow();
mainWindow.Show();
Close();
} }
else else
{ {
+1
View File
@@ -7,6 +7,7 @@
mc:Ignorable="d" mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"> Title="MainWindow" Height="450" Width="800">
<Grid> <Grid>
<Button Content="Slots" HorizontalAlignment="Left" Height="39" Margin="65,114,0,0" VerticalAlignment="Top" Width="93" Click="Slots_Click"/>
</Grid> </Grid>
</Window> </Window>
+5 -14
View File
@@ -21,23 +21,14 @@ namespace Casino
InitializeComponent(); InitializeComponent();
//copilot hilfe
var login = new Login();
bool? result = login.ShowDialog();
if (result == true)
{
var main = new MainWindow();
main.Show();
}
else
{
Application.Current.Shutdown();
}
} }
private void Slots_Click(object sender, RoutedEventArgs e)
{
Slots slotsWindow = new Slots();
slotsWindow.Show();
}
} }
} }
+2 -2
View File
@@ -38,9 +38,9 @@ namespace Casino
{ {
InitializeComponent(); InitializeComponent();
LoadCard();
}
}
private void LoadCard() private void LoadCard()
{ {
Database db = new Database(); Database db = new Database();