Пример #1
0
        private List<ILinkElement> GetReferencingLinks()
        {
            const string LIST_REFERENCES = @"<REFERENCE action=""list"" guid=""{0}"" />";
            XmlDocument xmlDoc = Project.ExecuteRQL(LIST_REFERENCES.RQLFormat(this), RqlType.SessionKeyInProject);

            return (from XmlElement curLink in xmlDoc.GetElementsByTagName("LINK")
                    select (ILinkElement) PageElement.CreateElement(Project, curLink.GetGuid(), LanguageVariant)).ToList();
        }
Пример #2
0
        private List <ILinkElement> GetReferencingLinks()
        {
            const string LIST_REFERENCES = @"<REFERENCE action=""list"" guid=""{0}"" />";
            XmlDocument  xmlDoc          = Project.ExecuteRQL(LIST_REFERENCES.RQLFormat(this), RqlType.SessionKeyInProject);

            //theoretically through an anchor the language variant of the target could be changed, but this is also not considered in the SmartTree,
            //so we ignore it, to be consistent with the SmartTree.
            return((from XmlElement curLink in xmlDoc.GetElementsByTagName("LINK")
                    select(ILinkElement) CreateElement(Project, curLink.GetGuid(), LanguageVariant)).ToList());
        }