/// <summary> /// Calculates (or re-calculates) the requirements, then updates the results on the UI /// </summary> private void CalculateRequirements() { var rockContext = new RockContext(); var groupMember = new GroupMemberService(rockContext).Get(hfGroupMemberId.Value.AsInteger()); if (groupMember != null && !groupMember.IsNewOrChangedGroupMember(rockContext)) { groupMember.CalculateRequirements(rockContext, true); } ShowGroupRequirementsStatuses(); }