private void BtnGoBack_Click(object sender, RoutedEventArgs e) { CreateProfile createProfile = new CreateProfile(); createProfile.Show(); this.Close(); }
private void BtnCreateAccount_Click(object sender, RoutedEventArgs e) { try { if (txtBoxCreatePassword.Password == txtBoxCreateConfirmPass.Password) { App.Current.Resources["createAccountEmail"] = txtBoxCreateEmail.Text; App.Current.Resources["createAccountPassword"] = txtBoxCreatePassword.Password; CreateProfile createProfile = new CreateProfile(); createProfile.Show(); this.Close(); } else { MessageBox.Show("Your password doesn't match."); } } catch (Exception exc) { MessageBox.Show(exc.Message); } }