private void BtnSubmit_Click(object sender, RoutedEventArgs e) { LoginViewModel.AuthenticateUser(); if (Globals.LoggedInUser == null) { txtblockinvalidusernameorpassword.Visibility = Visibility.Visible; return; } NoteViewModel.ShowDetailsWindow(); Close(); }