public Photo(FlickrNet.Photo p, Photoset ps) : this(p) { if (ps != null) { PhotosetTitle = ps.Title; PhotosetId = ps.PhotosetId; } }
private void AddPhotoToList(FlickrNet.Flickr f, FlickrNet.Photo flickrPhoto, Photoset photoset) { // Filter by date, if filter option enabled and date taken is known. if (!Settings.FilterByDate || flickrPhoto.DateTakenUnknown || (flickrPhoto.DateTaken.Date >= Settings.StartDate && flickrPhoto.DateTaken.Date <= Settings.StopDate)) { Photo photo = new Photo(flickrPhoto, photoset); PhotoList.Add(photo); // Get the photo info to get the raw tags, and put them into the photo object. // The raw tags are as uploaded or entered -- with spaces, punctuation, and // upper/lower case. FlickrNet.PhotoInfo info = f.PhotosGetInfo(flickrPhoto.PhotoId); photo.Tags.Clear(); for (int i = 0; i < info.Tags.Count; i++) { photo.Tags.Add(info.Tags[i].Raw); } } }