public static bool SameScope(IRIFDataScope scope1, string scope2)
 {
     if (scope1 == null && scope2 == null)
     {
         return(true);
     }
     if (scope1 != null && scope2 != null)
     {
         return(ScopeTree.SameScope(scope1.Name, scope2));
     }
     return(false);
 }
 public bool HasCell(IRIFDataScope cell)
 {
     if (cell == null)
     {
         return(false);
     }
     if (cell == base.Scope)
     {
         return(true);
     }
     foreach (IRIFDataScope peerDataCell in this.m_peerDataCells)
     {
         if (ScopeTree.SameScope(cell, peerDataCell))
         {
             return(true);
         }
     }
     return(false);
 }