private void btnFindMatches_Click(object sender, RoutedEventArgs e) { FindMatches findMatches = new FindMatches(); findMatches.Show(); this.Close(); }
private void BtnLogin_Click(object sender, RoutedEventArgs e) { try { if (myLoginViewModel.loginRepo.login(txtBoxEmail.Text, txtBoxUserPassword.Password)) { App.Current.Resources["loginEmail"] = txtBoxEmail.Text; FindMatches findMatches = new FindMatches(); findMatches.Show(); this.Close(); } else { MessageBox.Show("User does not exist"); } } catch (Exception exc) { MessageBox.Show(exc.Message); } }