Exemplo n.º 1
0
 internal override bool IsSameOrParentScope(IRIFDataScope parentScope, bool isProperParent)
 {
     if (parentScope == base.Scope)
     {
         return(true);
     }
     if (m_parentScope == null)
     {
         return(false);
     }
     return(m_parentScope.IsSameOrParentScope(parentScope, isProperParent));
 }
Exemplo n.º 2
0
        internal override bool IsSameOrParentScope(IRIFDataScope parentScope, bool isProperParent)
        {
            if (HasCell(parentScope))
            {
                return(true);
            }
            if (m_parentRowScope == null || m_parentColumnScope == null)
            {
                return(false);
            }
            bool flag  = m_parentRowScope.IsSameOrParentScope(parentScope, isProperParent);
            bool flag2 = m_parentColumnScope.IsSameOrParentScope(parentScope, isProperParent);

            if (!isProperParent)
            {
                return(flag || flag2);
            }
            return(flag && flag2);
        }