public override IPhoto CreatePhoto() { do { if (PhotoIterator.IsDone) { PhotoIterator.First(); } PhotoIterator.Next(); } while (PhotoIterator.Current.Longitude < 14.4 || PhotoIterator.Current.Longitude > 23.5 || PhotoIterator.Current.Latitude < 49.8 || PhotoIterator.Current.Latitude > 54.2); return(new PolandPhoto(PhotoIterator.Current, PhotoDecoder)); }
public override IPhoto CreatePhoto() { do { if (PhotoIterator.IsDone) { PhotoIterator.First(); } PhotoIterator.Next(); } while (PhotoIterator.Current.Longitude < 0.0 || PhotoIterator.Current.Longitude > 5.4 || PhotoIterator.Current.Latitude < 43.6 || PhotoIterator.Current.Latitude > 50.0); return(new FrancePhoto(PhotoIterator.Current, PhotoDecoder)); }
public override IPhoto CreatePhoto() { do { if (PhotoIterator.IsDone) { PhotoIterator.First(); } PhotoIterator.Next(); } while (PhotoIterator.Current.Longitude < 8.8 || PhotoIterator.Current.Longitude > 15.2 || PhotoIterator.Current.Latitude < 37.7 || PhotoIterator.Current.Latitude > 44.0); return(new ItalyPhoto(PhotoIterator.Current, PhotoDecoder)); }