Bei login starten

This commit is contained in:
NBTEMP\bib
2026-09-01 10:25:35 +02:00
parent 23fd90040f
commit 6c40e356f1
2 changed files with 7 additions and 13 deletions
+6 -1
View File
@@ -12,6 +12,7 @@ using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Mysqlx.Cursor;
namespace Casino
{
@@ -29,7 +30,11 @@ namespace Casino
{
if(checkLogin(TxtName.Text, TxtPasswort.Text))
{
DialogResult = true;
MainWindow mainWindow = new MainWindow();
mainWindow.Show();
Close();
}
}
+1 -12
View File
@@ -21,18 +21,7 @@ namespace Casino
InitializeComponent();
//copilot hilfe
Loaded += (_, _) =>
{
var window = new Login();
window.Owner = this;
window.ShowDialog();
if(window.DialogResult == false)
{
Close();
}
};
}