private void ContactOnDeleted(object sender, EventArgs e)
        {
            ContactViewModel vm = sender as ContactViewModel;

            ListeContacts.Remove(vm);
            observer.MoveCurrentToFirst();
        }
예제 #2
0
        private void AjoutAmi()
        {
            ContactVueModele cvm = new ContactVueModele(new Ami {
                Nom = "Nouvel", Prenom = "Ami"
            });

            cvm.delFromList += DelFromList;
            ListeContacts.Add(cvm);
        }
예제 #3
0
        private void AjoutClient()
        {
            ContactVueModele cvm = new ContactVueModele(new Client {
                Nom = "Nouveau", Prenom = "Client"
            });

            cvm.delFromList += DelFromList;
            ListeContacts.Add(cvm);
        }
예제 #4
0
 public void AddToList(object sender, EventArgs e)
 {
     ListeContacts.Add(sender as ContactVueModele);
 }
예제 #5
0
 public void DelFromList(object sender, EventArgs e)
 {
     ListeContacts.Remove(sender as ContactVueModele);
 }