//Pour charger les clients afin de les afficher dans le dgv private ObservableCollection <C_ClientsVoiture> ChargerPersonnes(string chConn, string Index) { ObservableCollection <C_ClientsVoiture> rep = new ObservableCollection <C_ClientsVoiture>(); List <C_ClientsVoiture> lTmp = new Model.G_ClientsVoiture(chConn).Lire(Index); foreach (C_ClientsVoiture Tmp in lTmp) { rep.Add(Tmp); } return(rep); }
public void Modifier() { if (PersonneSelectionnee != null) { C_ClientsVoiture Tmp = new Model.G_ClientsVoiture(chConnexion).Lire_ID(PersonneSelectionnee.idClient); UnePersonne = new VM_UnePersonne(); UnePersonne.ID = Tmp.idClient; UnePersonne.Pre = Tmp.prenomClient; UnePersonne.Nom = Tmp.nomClient; UnePersonne.Rue = Tmp.rueClient; UnePersonne.Numero = Tmp.numeroClient; UnePersonne.Boite = Tmp.boiteClient; UnePersonne.CodePo = Tmp.codePoClient; UnePersonne.Localite = Tmp.localiteClient; UnePersonne.Email = Tmp.emailClient; nAjout = BcpPersonnes.IndexOf(PersonneSelectionnee); ActiverUneFiche = true; } }