private void AjoutAmi() { ContactVueModele cvm = new ContactVueModele(new Ami { Nom = "Nouvel", Prenom = "Ami" }); cvm.delFromList += DelFromList; ListeContacts.Add(cvm); }
private void AjoutClient() { ContactVueModele cvm = new ContactVueModele(new Client { Nom = "Nouveau", Prenom = "Client" }); cvm.delFromList += DelFromList; ListeContacts.Add(cvm); }
public void AddToList(object sender, EventArgs e) { ListeContacts.Add(sender as ContactVueModele); }