Ejemplo n.º 1
0
        public static void Copy(PhotoCollection response)
        {
            Photos._all.Clear();

            foreach (var photo in response)
            {
                var ep = new EdmundsPhoto(photo.Id, photo.CaptionTranscript, photo.SubType, photo.ShotTypeAbbreviation);
                foreach (var source in photo.PhotoSources)
                {
                    ep.Pictures.Add(@"http://media.ed.edmunds-media.com" + source);
                }

                Photos.All.Add(ep);
            }
        }
Ejemplo n.º 2
0
        public void Copy(PhotoCollection response)
        {
            Photos.Clear();

            foreach (var photo in response)
            {
                var ep = new EdmundsPhoto(photo.Id, photo.CaptionTranscript, photo.SubType, photo.ShotTypeAbbreviation);
                foreach (var source in photo.PhotoSources)
                {
                    ep.Pictures.Add(@"http://media.ed.edmunds-media.com" + source);
                }

                Photos.Add(ep);
            }
        }