Exemplo n.º 1
0
        private void btnFindMatches_Click(object sender, RoutedEventArgs e)
        {
            FindMatches findMatches = new FindMatches();

            findMatches.Show();
            this.Close();
        }
Exemplo n.º 2
0
 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); }
 }