Ejemplo n.º 1
0
 public static PageDataCollection GetDescendents(int page, Rule rule, Relation relation)
 {
     PageReference pr = new PageReference(GetRelatedPageID(relation, page));
     PageData referencedPage = DataFactory.Instance.GetPage(pr);
     return RuleEngine.Instance.SearchRelations(rule, referencedPage.PageLink.ID, string.Empty, pr);
 }
Ejemplo n.º 2
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return((relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft);
 }
Ejemplo n.º 3
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return (relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft;
 }