// This event handler is fired when the apply to be a volunteer button is clicked. It signs the user up to be a volunteer and puts // the user in the volunteer waitlist. They will have to be approved later by an administrator or manger to actually become a volunteer. private void BtnApplyVolunteer_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("Are you sure?", "Sign up as a Volunteer", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes) { try { if (_userManager.AddUnapprovedPersonRole(_user.PersonID, "Volunteer")) { MessageBox.Show("You have successfully applied to become a volunteer."); checkVolunteerStatus(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message); } } }