private void Button_Click_AddLine(object sender, RoutedEventArgs e) { RéparationPhone phone = new RéparationPhone("", "", "", "", "", "", "", "", ""); Buisness.clients.Add(phone); }
public void Button_Click_Add(object sender, RoutedEventArgs e) { RéparationPhone phone = new RéparationPhone(nom.Text, prenom.Text, modelPhone.Text, mobile.Text, email.Text, dateRecu.Text, description.Text, status.Text, prixReparation.Text); Buisness.clients.Add(phone); this.Close(); }