jetblacksalvation
✅ Lost again
{
if (e.Key == Key.Return) // Check if Enter key is pressed
{
if (sender is Login login)
{
if (login.PasswordBox.Password == MasterKey)
{ login.Close(); // Close the login window } else { MessageBox.Show("Incorrect MasterKey.", "Error", MessageBoxButton.OK); } } } } do this
{ login.Close(); // Close the login window } else { MessageBox.Show("Incorrect MasterKey.", "Error", MessageBoxButton.OK); } } } } do this
190 replies