Beispiel #1
0
        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 : this.ColumnMembers;

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

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