public void Load() { Mailman PostierPartiel = PhoneApplicationService.Current.State["OneMailMan"] as Mailman; PostierPartiel.url_photo = PostierPartiel.url_photo.Replace("http://bactisme.frandroid.com/bemyapp/",""); PostierPartiel.url_photo = PostierPartiel.url_photo.Insert(0, "http://bactisme.frandroid.com/bemyapp/"); //on charge les badges ImageBadges = new ObservableCollection<string>(); foreach (String Names in PostierPartiel.badges) { String NamesTempory = Names.Insert(0, "/Images/Badges/"); ImageBadges.Add(NamesTempory + ".png"); } Postier = PostierPartiel; }
public MailmanViewModel() { Postier = new Mailman(); }