Inheritance: AbstractKeywordAssignableMultiLinkElement, IList
Example #1
0
        private void EnsureContentIsLoaded()
        {
            if (_clipboardEntries != null)
            {
                return;
            }

            const string LOAD_CLIPBOARD =
                @"<ADMINISTRATION><USER guid=""{0}""><CLIPBOARDDATA action=""load"" projectguid=""{1}"" foraspx=""1"" /></USER></ADMINISTRATION>";

            var doc =
                Project.ExecuteRQL(LOAD_CLIPBOARD.RQLFormat(Session.CurrentUser, Project, Project.LanguageVariants.Current.Abbreviation));

            var entries = doc.GetElementsByTagName("DATA");
            _clipboardEntries = entries.Cast<XmlElement>().Select(x => new ClipboardEntry{Guid = x.GetGuid(), Type = x.GetAttributeValue("type")}).ToList();

            _content = _clipboardEntries.Select(CreateContentEntry)
                .Where(x => x != null)
                .ToList();
        }
Example #2
0
 public void InvalidateCache()
 {
     _clipboardEntries = null;
 }