Bei login starten
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,18 +21,7 @@ namespace Casino
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
//copilot hilfe
|
||||
Loaded += (_, _) =>
|
||||
{
|
||||
var window = new Login();
|
||||
|
||||
window.Owner = this;
|
||||
window.ShowDialog();
|
||||
if(window.DialogResult == false)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user