Esempio 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);
 }
Esempio n. 2
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return((relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft);
 }
Esempio n. 3
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return (relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft;
 }