Compare commits

..
2 Commits
+14 -3
View File
@@ -20,12 +20,23 @@ namespace Casino
{ {
InitializeComponent(); InitializeComponent();
var window = new Login();
window.Owner = this; //copilot hilfe
window.ShowDialog(); Loaded += (_, _) =>
{
var window = new Login();
window.Owner = this;
window.ShowDialog();
if(window.DialogResult == false)
{
Close();
}
};
} }
} }
} }