private void modificationAnnuler_Click(object sender, EventArgs e) { Recu monRecu = new Recu(); monRecu.Show(); this.Close(); }
private void demandeVAlider_Click(object sender, EventArgs e) { Client c = new Client(); c.Noms = demandeNoms1.Text; c.Prenoms = demandePrenoms1.Text; c.Contacts = demandeContacts1.Text; c.Mail = demandeMail1.Text; c.Adresse = demandeAdresse1.Text; c.Bonus = demandeBonus1.Text; c.Montant = Convert.ToInt32(demandeMontant1.Text); C.insertClient(c); this.Close(); Recu monRecu = new Recu(); monRecu.Show(); }