public override void CreateDomainScopeMember(ReportHierarchyNode parentNode, Grouping grouping, AutomaticSubtotalContext context)
        {
            GaugeMember gaugeMember = new GaugeMember(context.GenerateID(), this);

            gaugeMember.Grouping = grouping.CloneForDomainScope(context, gaugeMember);
            HierarchyNodeList hierarchyNodeList = (parentNode != null) ? parentNode.InnerHierarchy : ColumnMembers;

            if (hierarchyNodeList != null)
            {
                hierarchyNodeList.Add(gaugeMember);
                gaugeMember.IsColumn = true;
                GaugeRow.Cells.Insert(ColumnMembers.GetMemberIndex(gaugeMember), new GaugeCell(context.GenerateID(), this));
                base.ColumnCount++;
            }
        }
Example #2
0
        private static bool CalculateDependencies(HierarchyNodeList members, HierarchyNodeList staticMembersInSameScope, HierarchyNodeList dynamicMembers)
        {
            if (members == null)
            {
                return(false);
            }
            bool flag = false;

            _ = members.Count;
            foreach (ReportHierarchyNode member in members)
            {
                if (!member.IsStatic)
                {
                    dynamicMembers.Add(member);
                    continue;
                }
                staticMembersInSameScope.Add(member);
                flag = (member.InnerHierarchy == null || (flag | CalculateDependencies(member.InnerHierarchy, staticMembersInSameScope, dynamicMembers)));
            }
            return(flag);
        }