Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
Fix Mürren picture display
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Mar 23, 2014
1 parent c0e80f1 commit fbe9f53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PhoneToolkitSample8/Data/PicturesAlbum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ public class Picture
/// Constructs a Picture object
/// </summary>
/// <param name="city"></param>
public Picture(string city)
/// <param name="fileName"></param>
public Picture(string city, string fileName = null)
{
this.City = city;
this.Url = "/Images/" + city + ".jpg";
this.Url = "/Images/" + (fileName ?? city) + ".jpg";
}
}

Expand All @@ -48,7 +49,7 @@ public class PicturesAlbum : ObservableCollection<Picture>
public PicturesAlbum()
{
this.Add(new Picture("Copenhagen"));
this.Add(new Picture("Mürren"));
this.Add(new Picture("Mürren", "Murren"));
this.Add(new Picture("Neuschwanstein"));
this.Add(new Picture("Paris"));
this.Add(new Picture("Seattle"));
Expand Down

0 comments on commit fbe9f53

Please sign in to comment.