// Affichage des information d'un contact private void ShowInfosOf(Contact contact) { //On enlève les infos du contact précédant ClearInfos(); // On affiche ceux du nouveau Image imageToShow; if (contact.Photo != null) { imageToShow = contact.Photo; } else { imageToShow = Properties.Resources.ic_profile; } this.PB_ContactPhoto.Image = imageToShow; this.LB_Group.Text = GetGroupOf(contact).Name; this.LB_Name.Text = contact.ToString(); this.Lb_Email.Text = contact.Email; this.LB_Tel.Text = contact.Tel; this.LB_Address.Text = contact.Address; this.LB_City.Text = contact.City; UpdateFavorite(contact.Favorite); }