Example #1
0
 internal File(IProject project, XmlElement xmlElement)
 {
     _project = project;
     _xmlElement = xmlElement;
     _name = xmlElement.GetAttributeValue("name");
     var folderGuid = xmlElement.GetGuid("folderguid");
     _folder = project.Folders.AllIncludingSubFolders.GetByGuid(folderGuid);
     Guid guid;
     if (_xmlElement.TryGetGuid("thumbguid", out guid))
     {
         _thumbnailGuid = guid;
     }
     if (IsAssetWithThumbnail)
     {
         //older versions do not contain the thumbnailpath attribute, so it has to be constructed
         ThumbnailPath = xmlElement.GetAttributeValue("thumbnailpath") ?? CreateThumbnailPath();
     }
 }
Example #2
0
 public OptionListSelection(IOptionList optionList, XmlElement element)
 {
     _optionList = optionList;
     Guid = element.GetGuid();
     Entries = GetEntries(element);
 }
Example #3
0
 public UserInfo(IProject project, XmlElement user)
 {
     User = new User(project.Session, user.GetGuid()) {Name = user.GetName()};
     HasUserReleasedPage = user.GetIntAttributeValue("released").GetValueOrDefault() == 1;
     PageReleaseDate = user.GetOADate().GetValueOrDefault();
 }