Exemple #1
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);
        }
Exemple #2
0
 private void CalculateDependencies()
 {
     this.m_staticMembersInSameScope = new HierarchyNodeList();
     this.m_dynamicMembersAtScope    = new HierarchyNodeList();
     this.m_hasStaticLeafMembers     = HierarchyNodeList.CalculateDependencies(this, this.m_staticMembersInSameScope, this.m_dynamicMembersAtScope);
 }