private TreeNode createTreeNode(WebPhoto.Providers.ITagInfo tag) { TreeNode node = new TreeNode(tag.Name, tag.Id); node.Checked = PhotoLibrary.TagUserAuthorizations.ContainsTag(tag.Id); foreach (var childTag in PhotoLibrary.AdminGetTagsByTag(tag.Id)) node.ChildNodes.Add(createTreeNode(childTag)); return node; }
public PhotoController(WebPhoto photo) { _photo = photo; }
public static void WriteGetPhotosForCollectionResult(this DataOutputStream output, WebPhoto[] value) { if (value == null) throw new ArgumentNullException("value"); output.WriteInt32(value.Length); foreach (var item in value) { output.WriteInt32(item.ID); output.WriteDateTime(item.CreatedDT.ToDateTime()); output.WriteString(item.Title); output.WriteString(item.Description); } }